MCPcopy Create free account
hub / github.com/GStreamer/gst-python / seek_and_pause

Method seek_and_pause

old_examples/synchronizer.py:264–270  ·  view source on GitHub ↗
(self, time)

Source from the content-addressed store, hash-verified

262 self.set_selected_video(time)
263
264 def seek_and_pause(self, time):
265 if self.pwindow.player.is_playing():
266 self.pwindow.play_toggled()
267 self.pwindow.player.seek(time)
268 if self.pwindow.player.is_playing():
269 self.pwindow.play_toggled()
270 self.pwindow.player.get_state(timeout=gst.MSECOND * 200)
271
272class ProgressDialog(gtk.Dialog):
273 def __init__(self, title, description, task, parent, flags, buttons):

Callers

nothing calls this directly

Calls 4

is_playingMethod · 0.45
play_toggledMethod · 0.45
seekMethod · 0.45
get_stateMethod · 0.45

Tested by

no test coverage detected