Kodi Community Forum

Full Version: Play Video With Python - Failed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I keep getting a failed error when trying to load this video, why?

file = 'q:\\scripts\\startupvideo.avi'
xbmc.player().play(file)
xbmc.executebuiltin('xbmc.activatewindow(0)')
if you are running a newer version of xbmc, then you need to use special:// paths..

In your example it would be special://xbmc/scripts/startupvideo.avi

see more in this blogpost: http://xbmc.org/jmarshall/2009/02/10/cha...d-plugins/
That dosn't seem to work either. I read though that page but I'm still not getting any results