Help - Search - Members - Calendar
Full Version: open .pls with mediaplayer
TalkingSoft.com Forums > Free-Codecs.com = Codecs.com > Codecs and Tools
duesburger
Hi to all
I'm searching for a tool that makes it possble to open/associate
.pls transmitted from schoutcast servers
with windows media-player
iv'e found one but it requires .net installation
Please see below
maybe there is someone who has another idea or is able to compile / link the source
without the need of .net installed

THX
Regards

Michael



[Util] Open PLS Playlist in Windows Media Player
[UPDATE: I finally built an installer and added some error handling, so this should be easier to set up and use. Download setup here: http://jongalloway.url123.com/OpenPlsInWMP]

Some web radio stations (like the super cool SomaFM) only offer PLS playlists, and Windows Media Player doesn't support PLS playlists even though they're about the simplest file imaginable.

I whipped up a simple app (OpenPlsInWM) that parses the stream url out of a PLS file and shells out to WMP, so if you associate PLS files with OpenPlsInWM it'll seem like Windows Media Player decided to play nice with PLS files.

It's working pretty well for me. If the stream is interrupted you may have to kill WMP and click the PLS link again - it doesn't seem to restart as well as with ASX streams. YMMV.

Download It [updated]
Source

Dirt Simple Code:
using System;
using System.IO;

namespace Jon.Galloway.Wrote.Me
{
class OpenPlsInWM
{
[STAThread]
static void Main(string[] args)
{
if (args.GetUpperBound(0) > -1)
{
string filename = args[0];
using (StreamReader sr = new StreamReader(filename))
{
string line;
while ((line = sr.ReadLine()) != null)
{
if (line.ToLower().StartsWith("file1="))
{
string url = line.Split('=')[1];
System.Diagnostics.Process.Start("wmplayer.exe",url);
break;
}
}
}
}
else
{
Console.WriteLine("Usage: OpenPlsInWM \"playlist.pls\"");
Console.WriteLine("Associate PLS file extension with this application to allow Windows Media Player to play them.");
}
}
}
}

posted on Thursday, April 08, 2004 1:47 AM
Mischcabob
Appreciate the effort. tongue.gif
I find it easier to associate PLS (music playlist format) with JetAudio or Winamp.
Both support streaming and I prefer it over WMP anyway. wink.gif
duesburger
Many THX for the fast response

i am looking for a solution thst only requires mediaplayer and dvdplayer on the pc
i think i've found a good solution
i use klite codec pack to open quicktime and real
so i associatet .pls with mplayerc and it works fine
witout the need to install more and more players


maybe this is a good solution

THX

best regards

Michael rolleyes.gif
chp
Then this problem is probably solved - with Media Player Classic smile.gif
BTW there's a proggy Winamp Alternative wink.gif
Topic here: http://www.click-now.net/forums/index.php?showtopic=1368
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.