I've been working on a plugin for xmradio and have a question about passing the url with parameters. I can pass the user and password and receive the url that opens the stream. If I open the link with an empty mc.ListItem:
channel = mc.ListItem(mc.ListItem.MEDIA_AUDIO_RADIO)
#channel.SetLabel = label
#channel.SetContentType( "audio/x-mpegurl" )
channel.SetPath(str(link))
mc.Player().Play( channel )
The player will show error in the log but will play the stream.
20:14:49 T:2845281136 M:1712857088 INFO: about to play url http://******@.com&campaign=default&...x&MSWMExt=.asf
20:14:49 T:2845281136 M:1711968256 ERROR: [ActionType=PLAY] - Item [label=][IsInternetStream=1] is going to be reported to the server although its MSG_KEY_NAME is EMPTY. [dont-report=0=]. Obj parameters are [type=stream][name=][url=http://******@.com&campaign=default&bitrate=high&wmcache= 0&mswmext=.asx&MSWMExt=.asf
][content_type=text/html][stream_type=][thumb=][show_name=][episode=][season=][provider=][app_id=xmradio][adult=][country=][country_allow=][genre=][release_date=][boxee_id=][show_id=][show_name=][imdb_id=][release_year=][run_time=][hasDesc=0][activate_from=][func_ref=new] (rts)
If I try to pass the same link with the label and content the player will error no data retrieved from the stream.
20:32:20 T:2887773040 M:1679138816 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream. HTTP CODE: 456
20:32:20 T:2887773040 M:1679138816 ERROR: Open - failed to open source <http://******@com&campaign=default&bitrate=high&wmcache=0 &mswmext=.asx&MSWMExt=.as
Could some one help me understand whats going on? This works on linux. I haven't tested it on any other os.


Reply With Quote
Bookmarks