Your 2nd Add-On: Online Videos!
#27
(2016-01-27, 13:03)Roman_V_M Wrote: Please read this my post: http://forum.kodi.tv/showthread.php?tid=...pid2227469
Hopefully, it will make things more clear for you. What you need is p.2. But inside your playback function and before setResolvedUrl you can do anything you like. It includes presenting to a user a selection dialog. xbmcgui.Dialog().select(...) is enough for simple cases.

BTW, you can store a "category", that is a plugin virtual folder, in Kodi Favorites.

That was it, I feel so stupid. You are a genuis Roman,xbmcgui.Dialog().select(...) worked perfectly. Thank you so much for all the help, I can stress how much I appreciate it.Thanks

p.2?? Is that play function 2?


Edit:

I am stupid, I got too happy at the sight of seeing the dialog box. I tried various ways in the example plugin, I get the dialog box but it does not play the url selected. It just play the original url, I don't know if it makes sense. I guess that's why you said I need p.2.

May I iterate once more that I am very very new to python coding and kodi commands. I know I may be pushing my luck but is there any possibility that you can rectify the following code: (Trying to figure out what I can put in xbmc.Player(...) to make it play either url or url2)

Code:
url = "http://108.61.159.243:1935/XStreamEngine-243/smil:MyJamTV.smil/playlist.m3u8"
url2 = "http://www.vidsplay.com/vids/alligator.mp4"

listitem = xbmcgui.ListItem("My Jam TV")
listitem.setInfo('video', {'Title': 'My Jam TV', 'Genre': 'Music Video'})
xbmcgui.Dialog().select('Choose a link', [url, url2])
# Play the Stream
xbmc.Player().play('', listitem)

Alternatively, I will be over the moon if you can show me what to add to your example plugin to create the desired effect. Because I can only add strings, anything else and it tells me it is undefined.

And my apologies for making this thread unnecessary long, I was going to inbox you but this was not possibble.


P.S. I can add the category to favourites but this is not a playable item/folder that can be played by a TV-Guide, which is what I am trying to do. I tried adding the isPlayable property but this still did not work with a TV-Guide.
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-02-03, 21:23
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