Kodi Community Forum

Full Version: Agent x modified
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i am making a personal script that is based fully on agentx. basically instead of downloading zip files it downloads .wmv video files and stores them in a location as temp.wmv. i was wondering what a piece of code would be to play the temp file after it was downloaded. i was looking thru previously made video streaming .py files but got confused. i am new to python and was just wanting something that would fit my needs. maybe after i learn more i could use my knowledge to better the xboxmediacenter scene. any help is greatly appreciated. i am a noob. thx.
you write a script but you don't know how to play a file ? Smile
streamfile='http:// or mms:// host/filename.wmv'
localfile='q:\\scripts\\localdir\\localfil.wmv'
player=xbmc.player()
player.play(streamfile or localfile)
Quote:you write a script but you don't know how to play a file ?

like i said im a noob. thx tho. that was exactly what i wanted.