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

Method set_selected_video_now

old_examples/synchronizer.py:255–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

253 self.set_selected_audio(time)
254
255 def set_selected_video_now(self):
256 # pause and preroll first
257 if self.pwindow.player.is_playing():
258 self.pwindow.play_toggled()
259 self.pwindow.player.get_state(timeout=gst.MSECOND * 200)
260
261 time, dur = self.pwindow.player.query_position()
262 self.set_selected_video(time)
263
264 def seek_and_pause(self, time):
265 if self.pwindow.player.is_playing():

Callers 1

create_uiMethod · 0.95

Calls 5

set_selected_videoMethod · 0.95
is_playingMethod · 0.45
play_toggledMethod · 0.45
get_stateMethod · 0.45
query_positionMethod · 0.45

Tested by

no test coverage detected