Video Addon ask for quality to play
#1
The old YouTube addon used to have an option to ask it when you press a video which quality you want it to play.
How would I implement that?

I understand about the setting part, but presenting an options UI instead of playing a video when pressed I don't understand. Even just pointing me to the old YouTube plugin's source code would be appreciated (I couldn't find it, only the new one without that option).


EDIT: I think what I want to do is show an xbmcgui.Dialog() when a ListItem is pressed.

EDIT 2: I worked it out. I'll post how when I'm next at my computer (rather than on my phone). Short version: ListItems added to the directory as not a folder with a custom URL pointing back to your our plugin don't expect you to return a URL unless you set the 'IsPlayable' property on them. Else they can be used like custom buttons to trigger some other event.
And if you set the playable property to true than you can use XBMCplugin.setResolvedURL()
Reply

Logout Mark Read Team Forum Stats Members Help
Video Addon ask for quality to play0