2010-12-05, 13:53
Hey folks,
Im just working on my first plugin (and I am enjoying it a lot ).
I'm stuck at some point and require some help from you guys.
Here is what I wanna do:
I have a long list of urls, which is displayed to the user. If you follow one of those urls in your browser, you can find a non-generic link to an audio stream.
That is why I want to parse the list, and present it to the user in a plugin. If the user selects an item, I want the plugin to parse the stream adress and directly play it. I stole this code from the moviemaze addon:
Unfortunately this isn't working. I get no error whatsoever, xbmc just starts 'Working' and then nothing happens. No entry in the debug log.
Is my logic correct? I really hope someone can help me.
Best wishes,
Axel
Im just working on my first plugin (and I am enjoying it a lot ).
I'm stuck at some point and require some help from you guys.
Here is what I wanna do:
I have a long list of urls, which is displayed to the user. If you follow one of those urls in your browser, you can find a non-generic link to an audio stream.
That is why I want to parse the list, and present it to the user in a plugin. If the user selects an item, I want the plugin to parse the stream adress and directly play it. I stole this code from the moviemaze addon:
Code:
## Here comes the of the .ram file refering to the resolved id
urlnew = 'http://mouth.betalounge.com/ramgen/lounge/2010/101002_soulalldayer_de.rm?start=0&end=0'
## Play this file
liz=xbmcgui.ListItem('test', iconImage="DefaultVideo.png", thumbnailImage="DefaultVideo.png")
liz.setInfo( type="Audio", infoLabels={ "Title": 'Test' } )
Player = xbmc.Player(xbmc.PLAYER_CORE_AUTO)
Player.play(urlnew, liz)
xbmc.executebuiltin('Container.Refresh')
Unfortunately this isn't working. I get no error whatsoever, xbmc just starts 'Working' and then nothing happens. No entry in the debug log.
Is my logic correct? I really hope someone can help me.
Best wishes,
Axel