Kodi Community Forum
Agent x modified - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Agent x modified (/showthread.php?tid=10448)



- zerowizard - 2005-03-07

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.


- solexalex - 2005-03-07

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)


- zerowizard - 2005-03-07

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.