def onPlayBackStarted(self): addon_log('START') addon_log(xbmc.getInfoLabel('VideoPlayer.VideoCodec')) addon_log(xbmc.getInfoLabel('VideoPlayer.AudioCodec')) ## this will kill the sopcast if we changed the media if xbmc.Player(xbmc.PLAYER_CORE_AUTO).getPlayingFile() != LOCAL_URL: try: stop_spsc(self.spsc_pid) except: pass xbmc.executebuiltin( "Dialog.Close(busydialog)" ) if DISABLE_SCHEDULE!='true': #display schedule active event active_event = load_active_event(self.name) if active_event: xbmc.executebuiltin("Notification(%s,%s,%i)" % (active_event, "", 10000))
def onPlayBackStarted(self): addon_log('START') addon_log(xbmc.getInfoLabel('VideoPlayer.VideoCodec')) addon_log(xbmc.getInfoLabel('VideoPlayer.AudioCodec')) ## this will kill the sopcast if we changed the media if xbmc.Player(xbmc.PLAYER_CORE_AUTO).getPlayingFile() != LOCAL_URL: try: stop_spsc(self.spsc_pid) except: pass xbmc.executebuiltin("Dialog.Close(busydialog)") if DISABLE_SCHEDULE != 'true': #display schedule active event active_event = load_active_event(self.name) if active_event: xbmc.executebuiltin("Notification(%s,%s,%i)" % (active_event, "", 10000))
def onPlayBackStarted(self): addon_log('START') addon_log(xbmc.getInfoLabel('VideoPlayer.VideoCodec')) addon_log(xbmc.getInfoLabel('VideoPlayer.AudioCodec')) ## this will kill the sopcast if we changed the media #if xbmc.Player(xbmc.PLAYER_CORE_AUTO).getPlayingFile() != SETTINGS.LOCAL_URL: # try: stop_spsc(self.spsc_pid) # except: pass xbmc.executebuiltin( "Dialog.Close(busydialog)" ) #online notif mark = mark_stream(ch_id=self.ch_id) mark.mark_online() self.stream_online = True if SETTINGS.DISABLE_SCHEDULE!='true': #display schedule active event active_event = load_active_event(self.name) active_event = active_event.encode('utf8') if active_event: xbmc.executebuiltin("Notification(%s,%s,%i)" % (active_event, "", 10000))
def onPlayBackStarted(self): addon_log('START') addon_log(xbmc.getInfoLabel('VideoPlayer.VideoCodec')) addon_log(xbmc.getInfoLabel('VideoPlayer.AudioCodec')) ## this will kill the sopcast if we changed the media #if xbmc.Player(xbmc.PLAYER_CORE_AUTO).getPlayingFile() != SETTINGS.LOCAL_URL: # try: stop_spsc(self.spsc_pid) # except: pass xbmc.executebuiltin("Dialog.Close(busydialog)") #online notif mark = mark_stream(ch_id=self.ch_id) mark.mark_online() self.stream_online = True if SETTINGS.DISABLE_SCHEDULE != 'true': #display schedule active event active_event = load_active_event(self.name) active_event = active_event.encode('utf8') if active_event: xbmc.executebuiltin("Notification(%s,%s,%i)" % (active_event, "", 10000))