seek stuff

This commit is contained in:
langolierz
2017-11-11 08:54:56 +00:00
parent c1406b5487
commit 5cb50bf231
6 changed files with 12 additions and 12 deletions

View File

@@ -187,11 +187,11 @@ class video_player(object):
return
print 'failed to toggle pause (this needs to be in message)'
def seek_video_to(self, amount_in_seconds):
if self.omx.seek(amount_in_seconds*1000000) == None:
print 'failed to seek {}'.format(amount_in_seconds)
else:
print 'successfully seeked {} '.format(amount_in_seconds)
def jump_video_forward(self):
self.omx.run_action(20)
def jump_video_back(self):
self.omx.run_action(19)
# tk = Tk()