After pulling my hair out (there is still enough left), I thought I better ask for help. I am trying something really simple for now: A channel plug-in that allows playback of Radio Paradise (radioparadise.com) streams. Here is what I have:
<br />
<br />
@handler('/music/InternetRadio', 'Internet Radio')<br />
def MainMenu():<br />
oc = ObjectContainer()<br />
playlist = HTTP.Request('http://www.radioparadise.com/musiclinks/rp_128.m3u').content<br />
i = 0<br />
for track in playlist.splitlines():<br />
oc.add(TrackObject(key=track, rating_key=i, title=track))<br />
i += 1<br />
<br />
playlist = HTTP.Request('http://www.radioparadise.com/musiclinks/rp_128aac.m3u').content<br />
for track in playlist.splitlines():<br />
oc.add(TrackObject(key=track, rating_key=i, title=track))<br />
i += 1<br />
oc.add(TrackObject(key='http://192.168.178.39:8080/', rating_key=i, title='VLC stream'))<br />
return oc<br />
That's the whole plug-in for now. Problem is it doesn't work properly and I cannot figure out what's wrong. Here is what's working:
[list=1][*]Fetching an m3u playlist (containing mp3 streams) and list each stream as a separate item[*]Fetching an m3u playlist (containing AAC streams) and list each stream as a separate item, appended to the above[*]Add a local mp3 stream (generated by VLC) added as a separate item, appended to the above[/list]
PMC, PHT (both Win7), Plex/Web as well as Plex/iOS show the list of streams. Good.
Unfortunately except for Plex/iOS, choosing any of these streams for playback doesn't work, nothing seems to happen. On iOS however, the mp3 streams play back nicely, the AAC streams don't. If there is a hint anywhere in any of the logs, I am just not finding it.:blink:
So my questions:
[list=1][*]What am I doing wrong that makes playback fail for all the clients except the iOS one?[*]Why aren't the AAC tracks playing back on iOS (or any of the other clients for that matter)?[*]Is there a way to just call the m3u file so Plex just plays back the first stream that works and if one fails just goes to the next?[*]Is there a better way to deal with the "rating_key" property of the TrackObject, ideally so I don't have to take care of it at all?[/list]
Any advice is much appreciated!
Thanks & Best Regards,
Gundy

