YouTube Videos
#1
Hi,

I'm currently working on a video addon. I need to access YouTube videos for this, and i'm searching for the best way to do this.

I have taken a look at the YouTube addon, and the code to fetch the correct video url is quite complicated. But I figured out a very easy solution to my problem - I simply use the YouTube addon by adding a video with the following URL:
Code:
url = "plugin://plugin.video.youtube/?path=/root/search&action=play_video&videoid=[i]SOMEID[/i]"
This is a very simple solution, and the YouTube addon will automaticallly construct a url and figure out a proper video resolution.

But an obvious disadvantage is: my addon would depend on the YouTube addon. As far as I know, there is no way to express such a dependency in the addon metadata - so users would have to install the YouTube plugin by themselves.

Any suggestions?


Greets,
neverm
Reply
#2
I think I've found a solution (but still untested):

http://wiki.xbmc.org/index.php?title=Add...elopement)

It seems that one can define a "requires" tag Smile
Reply

Logout Mark Read Team Forum Stats Members Help
YouTube Videos0