Your 2nd Add-On: Online Videos!
#23
(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.
Reply


Messages In This Thread
Your 2nd Add-On: Online Videos! - by zag - 2015-11-20, 15:28
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-11-20, 15:33
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-11-30, 14:42
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-12-01, 12:58
RE: Your 2nd Add-On: Online Videos! - by zag - 2016-01-18, 14:37
RE: Your 2nd Add-On: Online Videos! - by Rapboy - 2016-01-26, 18:22
RE: Your 2nd Add-On: Online Videos! - by pa79 - 2020-09-09, 19:59
Logout Mark Read Team Forum Stats Members Help
Your 2nd Add-On: Online Videos!2