2011-02-25, 16:48
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:
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
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]"
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