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
Page 1 of 1
open .pls with mediaplayer [SOLVED] tool needed to open/associate winamp.pls with mediaplayer
#2 Guest_Mischcabob_*
Posted 13 October 2005 - 06:32 AM
Appreciate the effort.
I find it easier to associate PLS (music playlist format) with JetAudio or Winamp.
Both support streaming and I prefer it over WMP anyway.
I find it easier to associate PLS (music playlist format) with JetAudio or Winamp.
Both support streaming and I prefer it over WMP anyway.
#3 Guest_duesburger_*
Posted 13 October 2005 - 09:39 AM
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
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
#4 Guest_chp_*
Posted 14 October 2005 - 07:46 PM
Then this problem is probably solved - with Media Player Classic
BTW there's a proggy Winamp Alternative
Topic here: http://www.click-now.net/forums/index.php?showtopic=1368
BTW there's a proggy Winamp Alternative
Topic here: http://www.click-now.net/forums/index.php?showtopic=1368
Share this topic:
Page 1 of 1

Help










