Skip to content

Instantly share code, notes, and snippets.

@henryjfry
Last active February 6, 2020 22:09
Show Gist options
  • Save henryjfry/6a999a1dfe952c5a08df87a940975587 to your computer and use it in GitHub Desktop.
Save henryjfry/6a999a1dfe952c5a08df87a940975587 to your computer and use it in GitHub Desktop.
SEREN video plays in background /home/osmc/.kodi/addons/plugin.video.seren/resources/lib/modules/player.py
def start_playback(self):
import xbmc
import xbmcgui
# xbmc.log(str(xbmcgui.getCurrentWindowDialogId())+'===>service.next_playlist2', level=xbmc.LOGNOTICE)
# xbmc.log(str(xbmc.getCondVisibility('Player.HasVideo'))+'===>service.next_playlist2', level=xbmc.LOGNOTICE)
for i in range(30):
if xbmc.getCondVisibility('Player.HasVideo'):
xbmc.executebuiltin('ActivateWindow(fullscreenvideo)')
break
xbmc.sleep(1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment