Possible to run a windows command upon starting playback of internal player?
#1
I just want to execute one command line command every time I start playback of any video file.

Note, I do use an external player (TMT6) for 3d Bluray playback and it works fine using the playercorexml file.



Thanks for the help.
Reply
#2
Bump.

AnyoneHuh
Reply
#3
With some modification, you can use a python script to do that.

Code:
import xbmc,os

class MyPlayer(xbmc.Player) :
    def _init_ (self):
        xbmc.Player._init_(self)

    def onPlayBackStarted(self):
        if xbmc.Player().isPlayingVideo():
            response = os.startfile("C:\\Program Files\\XXX\YYY.exe")

I'm a noob when it comes to python scripting. So I may not be able to help you further.

Try https://app.box.com/s/3tuy0plh9gi89ebjppyc.
Reply

Logout Mark Read Team Forum Stats Members Help
Possible to run a windows command upon starting playback of internal player?0