Last active
February 6, 2020 22:09
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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