How about the priority does it work like if i have an effect running lets say prio 500, and then start a movie (on prio 10). it will override the effect i had loading? cause when i have this effect loaded and then start an movie, the effect keeps going. when i set an --clear suggestion in terminal, the effect kills and then start to output the movie. But im unsure how this priority works and which priority effect has and which prio mplayer has. or kodiVideoChecker priority.
my final goal is to get rid of the autoxec.py (for hyperion functions)
Code
import xbmc,xbmcgui
import subprocess,os
import time
class MyPlayer(xbmc.Player) :
def __init__ (self):
xbmc.Player.__init__(self)
def onPlayBackStarted(self):
if xbmc.Player().isPlayingVideo():
os.system('/usr/share/hyperion/bin/hyperion-remote --clear')
def onPlayBackEnded(self):
if (VIDEO == 1):
def onPlayBackStopped(self):
if (VIDEO == 1):
def onPlayBackPaused(self):
def onPlayBackResumed(self):
if xbmc.Player().isPlayingVideo():
os.system('/usr/share/hyperion/bin/hyperion-remote --clear')
player=MyPlayer()
while(1):
if xbmc.Player().isPlayingVideo():
VIDEO = 1
else:
VIDEO = 0
xbmc.sleep(3000)
Alles anzeigen
Thank You.