2016-01-26, 18:22
(2016-01-21, 15:51)Roman_V_M Wrote: You don't need to assign URL at all. If using xbmcplugin.setResolvedUrl, a path can be set just before playback. For example, you can present to a selection dialog to the user.
Roman, an immense Thank You. I can't thank you enough for that advice, you saved me so much headache. I almost gave up until I saw your post, so once again thank you.
I was hoping to post back after successfully implementing the setResolvedUrl, but after 4 days I have not had any success. Everything I have been trying/doing leads to an error. I will forever be grateful and hugely appreciative if you can help me out with the following code below. What I was attempting with the script was to show the user both urls, and let them decide which url to view just like you mentionned in your example.
Code:
import xbmc
import xbmcgui
url = [{"http://108.61.159.243:1935/XStreamEngine-243/smil:MyJamTV.smil/playlist.m3u8"},{"http://rt-a.akamaihd.net/ch_01@325605/%s.m3u8"}]
# Fake List Item for Stream Name
listitem = xbmcgui.ListItem("My Jam TV", "MY TV")
listitem.setProperty('IsPlayable', 'true')
xbmcplugin.setResolvedUrl( handle=int( sys.argv[1]), succeeded=True, listitem=xbmcgui.ListItem() )
#xbmc.Player().play(url, listitem)
Any help will be greatly appreciated, Thanks.