Freebox Jukebox

E-Touch General Category => General Discussion => Topic started by: netcat on September 21, 2008, 08:27:41 PM

Title: shoutcast
Post by: netcat on September 21, 2008, 08:27:41 PM
I know my Youtube player request has been turned down in the past but... how about "shoutcast player" ?
any interest ?


Title: Re: shoutcast
Post by: eist1 on September 21, 2008, 11:15:48 PM
netcat,

Try this for wmp http://www.download.com/Pls2wmp/3000-2169_4-10861372.html (http://www.download.com/Pls2wmp/3000-2169_4-10861372.html) Just download it into a folder and save the Shoutcast .pls files to your PC folder (use firefox to right click and save as to save the .pls) then associate the .pls with the pls2wmp .exe and it will open .pls files in wmp. I asked Barry to see how hard it would be to allow us to use the .pls playlist file in the current Playlist page, that way just save the .ls to the Playlists folder and it will show up in Freebox and play through wmp.
Title: Re: shoutcast
Post by: Barcrest on September 22, 2008, 12:00:54 AM
Where do you find these .pls files?

EDIT:
I just put some code in to do what you suggested. Basically you could dump the PLS files in your playlist folder and you could see them and load them. However i cannot load them into media player so it's actually a bit of a non starter really. I don't know if i should take the code out or leave it in.
Title: Re: shoutcast
Post by: eist1 on September 22, 2008, 12:22:40 AM
Barry,

When you go to Shoutcast.com you can right click on the Tune in! button and save the file as a .pls file. They just upgraded the Shoutcast page so in IE Explorer you can goto the top of Shoutcast and choose Classic Shoutcast 1.0 and you can save the links in IE but for the newest version you need to use Firefox and right click and choose save link as and it will save the .pls. The only thing I can see is that the current Freebox Playlist menu looks for the file in the music library, as long as you configed it to when it saw .pls to use the pls2wmp.exe and make it play in wmp.

Just a note, for wmp to play .pls files it needs to use the pls2wmp.exe file, which forces the .pls files to be played through wmp.

Here's a link to one of the .pls files http://www.category5prd.com/stations/181.FM - 80's Hairband Channel.pls (http://www.category5prod.com/stations/181.FM%20-%2080's%20Hairband%20Channel.pls)
Title: Re: shoutcast
Post by: Barcrest on September 22, 2008, 12:35:06 AM
Yes but i can't have contro over which WMP it will play it in. Basically it would just call up WMP and play but freebox would have no control over it. This method doesn't look like it will work.
Title: Re: shoutcast
Post by: eist1 on September 22, 2008, 12:37:34 AM
Can you associate the .pls file to use pls2wmp.exe? It will force it to use wmp.
Title: Re: shoutcast
Post by: Barcrest on September 22, 2008, 10:25:01 AM
Yes you can do what you saw but when freebox calls those files it spawns a copy of WMP. I have no controll over that as it's a seperate application running.
Title: Re: shoutcast
Post by: eist1 on September 22, 2008, 01:59:14 PM
Barry,

Here is a link to the source code for the pls2wmp.exe http://www.codeproject.com/KB/audio-video/pls2wmp.aspx?fid=1467953&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2627498 (http://www.codeproject.com/KB/audio-video/pls2wmp.aspx?fid=1467953&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2627498) it looks like a very small program, which all it looks to do is send the first URL it finds in the .pls file to wmp (you can use the .pls file I attached above to look at what the file looks like), not sure if this could just be added to Freebox, to when it finds a .pls file to just send the first URL found to wmp, and get around having to use the pls2wmp.exe all together. Maybe some of our other code guru's like Lave Laar could also take a look at it and see what can be done.

Here's the source for another similar program called Open PLS in WMP http://www.codeplex.com/openplsinwmp/SourceControl/ListDownloadableCommits.aspx (http://www.codeplex.com/openplsinwmp/SourceControl/ListDownloadableCommits.aspx) maybe between both programs something could be created.

http://weblogs.asp.net/jgalloway/archive/2004/04/08/109672.aspx (http://weblogs.asp.net/jgalloway/archive/2004/04/08/109672.aspx)
Title: Re: shoutcast
Post by: Barcrest on September 22, 2008, 02:36:40 PM
Yes... I can do it by sending the URL. Ok i will look again for you, i wasn't trying to be awkward i just hadn't looked at this enough.
Title: Re: shoutcast
Post by: eist1 on September 22, 2008, 02:49:51 PM
No problem Barry, was just trying to give you some ideas to see if this was even possible. Thanks for looking at it....
Title: Re: shoutcast
Post by: Barcrest on December 16, 2008, 11:38:39 PM
Tried sending the url but it doesn't seem to work :S