expose video-positioning action seek_to_location_on_player - hopefully helps with #142 ?

This commit is contained in:
Tristan Rowley
2020-07-23 17:27:16 +00:00
parent 3773999da0
commit f180d82f39
4 changed files with 17 additions and 1 deletions

View File

@@ -240,6 +240,10 @@ class Actions(object):
def seek_back_on_player(self):
self.video_driver.current_player.seek(-(self.data.settings['sampler']['SEEK_TIME']['value']))
def seek_to_location_on_player(self, position):
print("seek_to_location_on_player passed %s" % position)
self.video_driver.current_player.seek_percent(position)
def toggle_function(self):
self.data.function_on = not self.data.function_on