2014-07-10, 09:48
When it is this code, 3D mode is activated.
But there is something that 3D mode does not start it's videoid another.
this Videid is no good. why?
__videoid__ = "zyPLTtj-cxg"
Code:
import sys, os, string
import xbmc, xbmcgui, xbmcplugin, xbmcaddon
__script_path__ = os.path.abspath( os.path.dirname(__file__) )
__strm_file__ = __script_path__ + '/stream.3D.SBS.strm'
__youtube_url__ = 'plugin://plugin.video.youtube/?action=play_video&videoid='
__videoid__ = "u0hmMt5znX0"
xbmc.Player().play(__youtube_url__ + __videoid__)
url = xbmc.Player().getPlayingFile()
while True:
tit = xbmc.getInfoLabel("Player.Title")
thum = xbmc.getInfoLabel("Player.Art(thumb)")
print tit
print thum
if xbmc.Player().isPlayingVideo() and tit:
xbmc.Player().stop()
break
xbmc.sleep(1)
f = open(__strm_file__, 'w')
f.write(url)
f.close()
li = xbmcgui.ListItem(tit,"",thum,thum,__strm_file__)
xbmc.Player().play(__strm_file__)
But there is something that 3D mode does not start it's videoid another.
this Videid is no good. why?
__videoid__ = "zyPLTtj-cxg"