How to play youtube video on my plugin
#1
Hi Folks,
I have been develop my own plugin. I want to add some youtube links to play.
How can i do that?

xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play('youtube.url')

This is not working.
Please help.

Thanks

Oki
Reply
#2
You can use the Youtube addon:
Code:
url = "plugin://plugin.video.youtube/?path=/root/video&action=play_video&videoid=YOUTUBE_VIDEO_ID"
Reply
#3
http://www.youtube.com/watch?v=OAVuKPFKrNo

Ok. for this video , YOUTUBE_VIDEO_ID=OAVuKPFKrNo right?

then run below code;

url = "plugin://plugin.video.youtube/?path=/root/video&action=play_video&videoid=OAVuKPFKrNo"
xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(url)

Just settings-youtube screen pop-up.

Anything wrong?
Reply
#4
OK just signed-in youtube first then works great thanks
Reply
#5
On the first start of the youtube plugin the settings dialog pops up, choose your video quality and hit ok.
You only need to sign in if the videos are age-restricted - i think...
Reply
#6
Age restriction can be passed through if you emulate embedding the video, if it's allowed.
Reply

Logout Mark Read Team Forum Stats Members Help
How to play youtube video on my plugin0