play Youtube url
#1
Hi.

I'm trying to make a small script thats starts playing an youtube video, but i not able to make it work..

Code:
import xbmc
xbmc.executebuiltin( 'XBMC.runplugin(plugin://plugin.video.youtube/?action=play_video&videoid=ifZkeuSrNRc)')
Reply
#2
(2013-11-24, 13:56)lilfire Wrote: Hi.

I'm trying to make a small script thats starts playing an youtube video, but i not able to make it work..

Code:
import xbmc
xbmc.executebuiltin( 'XBMC.runplugin(plugin://plugin.video.youtube/?action=play_video&videoid=ifZkeuSrNRc)')

Maybe
Code:
url = plugin://plugin.video.youtube/?action=play_video&videoid=ifZkeuSrNRc
xbmc.Player().play(url)
Reply
#3
i have tryd that as well,

Could not locate video url
Reply
#4
(2013-11-24, 15:52)lilfire Wrote: i have tryd that as well,

Could not locate video url

Do you actually have the YouTube addon installed?
Reply
#5
yes.
Reply
#6
If you try it from the website it turns out that video is no longer available (account termintated)

http://www.youtube.com/watch?v=ifZkeuSrNRc
Reply
#7
ok, but it not working for other youtube videos either, thats exist on youtube.

http://www.youtube.com/watch?v=M7FIvfx5J10
Reply
#8
Code:
xbmc.Player().play('plugin://plugin.video.youtube/?path=root/video&action=play_video&videoid=M7FIvfx5J10')

Works for me

Looking here

http://wiki.xbmc.org/index.php?title=Lis..._functions

RunPlugin (and RunScript) requires the fullpath
Reply

Logout Mark Read Team Forum Stats Members Help
play Youtube url0