PDA

View Full Version : SqueezeCenter and real media streams in favorites



Bixby
2008-03-18, 19:52
In the old version of SlimServer, I used the My Picks plugin to organize favorites, since that allowed renaming them, etc. This functionality seems included in SqueezeCenter. However, now I can't access real media streams - SqueezeCenter doesn't recognize them as valid playable items. How do I make this happen? I know Alien BBC works fine, because I can get the stream to play via 'tune in URL'.

I DON'T want to have to put it in a playlist, thus separating it from my other favorites.

Thanks.

bpa
2008-03-19, 00:41
The same functionality is in SC.

Give a specific example of an URL that is not working.

Bixby
2008-03-19, 08:38
http://wgnradio.com/listen/liveWGN.ram

bpa
2008-03-19, 08:59
There is something odd in Favorites about handling playlists and RAM is a playlist.

Instead use the URL
rtsp://live.wgnradio.com:5544/encoder/wgnlive.rm

However to play that station make sure you have installed the sipr codec for mplayer as that station uses the old format.

bpa
2008-03-19, 09:27
The issue seems to be something to do with identification of playlist.

If you change the file custom-types.conf in Plugins/Alien as follows (add the 2nd rtsppl line) - then the RAM URL works although I'm not sure if it will work for all RAM URLs.


rtsppl rm,ram,rpm ? playlist
rtsppl ? audio/x-pn-realaudio playlist
rtsp rtsp: ? audio
smilpl smil application/smil playlist

Bixby
2008-03-19, 09:57
Thanks, bpa. I'll give it a go tonight.

bpa
2008-03-19, 10:39
The suggested mod seems to prevent system startup on occasions - try the following instead. On the rtsppl line the ? is changed to the MIME value.



rtsppl rm,ram,rpm audio/x-pn-realaudio playlist
rtsp rtsp: ? audio
smilpl smil application/smil playlist

Bixby
2008-03-19, 20:19
I changed the '?' to 'audio/x-pn-realaudio', as suggested. Restarted Squeezecenter.

Still nothing.

When I use the .ram link, I get invalid xml feed error.

When I use the .rm link I get a cannot request non-http URL error.

Is this a bug or a feature? Of Alien BBC or Squeezecenter?

This worked fine in 6.5.4 with My Picks plugin. And I can listen via the 'tune in URL'. Just not via a Favorite. Frustrating.

Thanks.

bpa
2008-03-20, 00:59
When you make an entry in Favorites - it tests the URL to "see" is it a playable or playlist URL - if it is it is marked as playable with the little "play" icon. For some reason although AlienBBC has registered the .rm & .ram as playlist extension - the test fails and so when you click on your URL entries, SC tries to interpret the URL as a menu link which are in XML.

Workaround:
Stop SC. Edit the favorites.opml (using Wordpad if on Windows) and add to the end of your .ram and .rm entries
type="audio"
for example


<outline URL="http://wgnradio.com/listen/liveWGN.ram" text="WGN ram entry " type="audio" />


I don't know if it is a AlienBBC bug or a Favorites bug - I suspect the latter but I don't have time at the moment to chase it down. I think you should log a bug for it with a number of the problem URLs so it isn't forgotten.

Finally, I don't understand why the change I suggested worked on my system and not yours.

What OS are you using ?

Bixby
2008-03-20, 04:24
Thanks bpa. All of your efforts have been much appreciated!

I'll log it as a bug.

I'm running Windows 2000.

bpa
2008-03-20, 08:14
I checked Favorites behaviour in more detail. When it checks the target URL - it uses the return MIME type (and not the extension) to determine if the target an audio stream or not. The addition of "audio/x-pn-realaudio" fixes the problem on both my Windows and Linux systems for those URLs which return that MIME type.

For live streams (i.e. .rm) there is a different MIME type "audio/x-pn-multirate-realaudio-live" and for .rpm URLs have "audio/x-pn-realaudio-plugin".

There may be others.

To be correct these MIME types should be added to AlienBBC so that Favorites can do this checking (which was not done in MyPicks).

Can you post some of your URLs and I'll check to see if there are are more MIME types. I'll then update AlienBBC.

Bixby
2008-03-20, 18:08
Odd, I can't find favorites.opml anywhere.

In regards to other real streams, there aren't too many others that I use. Sometimes this one:

http://wsui.uiowa.edu/ram/wsui_stream.ram

Thanks again.

bpa
2008-03-20, 18:27
If you have a Playlist directory defined - check if favorites.opml is installed ther.

The wsui URL has a mime type of "audio/x-pn-realaudio".

I've come across only two other MIME types, so my list of RealAudio MIME type is as follows:
audio/x-realaudio
audio/x-pn-realaudio
audio/x-pn-multirate-realaudio-live
audio/x-pn-realaudio-plugin
application/ram

Adding the above types to the custom-type.conf file should get rid of the "xml" error and also will give a play icon on each Favorites. I tested the custom-type.conf change on a Windows XP system and the WGN ram URL worked OK for me.