2010-10-21, 00:08
@HenrikDK , thank you , THANK you, thank YOU!
With your help I have now managed to create a simple addon parsing and listing a rss feed with links to youtube and vimeo. Clicking a youtube video link launches your excellent addon.
-time to sleep :p
With your help I have now managed to create a simple addon parsing and listing a rss feed with links to youtube and vimeo. Clicking a youtube video link launches your excellent addon.
Code:
def playVideo(params):
get = params.get
videoType = get("videotype")
videoId = get("videoid")
url = ""
if (videoType == "youtube"):
url = "plugin://plugin.video.youtube.beta/?action=play_video&videoid=%s" % videoId
if (videoType == "vimeo"):
url = "plugin://plugin.video.vimeo/?mode=2&videoID=%s" % videoId
xbmc.executebuiltin("xbmc.PlayMedia("+url+")")
-time to sleep :p