commit 275761b0f8d20a1cbe1a8c35661b4b6c23149d96
parent 8148804f0f113742a703aeb2ce6455f865066ca8
Author: rbckman <rob@robinsfirma.com>
Date: Fri, 24 Aug 2018 20:03:30 +0300
added a try to omxplayer
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tarina.py b/tarina.py
@@ -819,9 +819,13 @@ def playthis(filename, camera):
writemessage('Starting omxplayer')
player = OMXPlayer(filename + '.mp4', args=['--fps', '25', '--layer', '3', '--win', '0,70,800,410', '--no-osd', '--no-keys'])
#os.system('omxplayer --layer 3 ' + filename + '.mp4 &')
- time.sleep(2)
+ time.sleep(1.5)
os.system('aplay -D plughw:0 ' + filename + '.wav &')
- player.play()
+ try:
+ player.play()
+ except:
+ print 'something wrong with omxplayer'
+ return
menu = 'BACK', 'PLAY FROM START'
settings = '', ''
selected = 0