Skip to content

Commit

Permalink
bugfix: omxplayer paused
Browse files Browse the repository at this point in the history
  • Loading branch information
isra67 committed Nov 10, 2017
1 parent 9715aa0 commit 9902a14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion indoor.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[command]
screen_saver = 45
watches = digital
watches = none
brightness = 120
dnd_mode = 0

Expand Down
8 changes: 5 additions & 3 deletions pjindoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,11 @@ def checkLoop(self, dt):

dbn = DBUS_PLAYERNAME + str(self.screenIndex)
status = get_info('%s %s status' % (DBUSCONTROL_SCRIPT, dbn)).split('\n')
try: p = int(status[1].split(' ')[1]) # check if position > 0
except: p = 0
if p < 0:
try: pos = int(status[1].split(' ')[1]) # check if position > 0
except: pos = 0
try: paused = str(status[2].split(' ')[1]).lower() != 'false' # check if paused == false
except: paused = True
if pos < 0 or paused:
sendNodeInfo('[***]VIDEO: %d ERROR' % (self.screenIndex))
Logger.warning('%s: (%d): %r' % (whoami(), self.screenIndex, status))
mainLayout.restart_player_window(self.screenIndex)
Expand Down

0 comments on commit 9902a14

Please sign in to comment.