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

Method __seek

old_examples/segments.py:110–116  ·  view source on GitHub ↗
(self, start, stop, flush)

Source from the content-addressed store, hash-verified

108 self.__timeout_id = 0
109
110 def __seek (self, start, stop, flush):
111 flags = gst.SEEK_FLAG_SEGMENT | gst.SEEK_FLAG_ACCURATE
112 if flush:
113 flags = flags | gst.SEEK_FLAG_FLUSH
114 self.__playbin.seek (1.0, gst.FORMAT_TIME, flags,
115 gst.SEEK_TYPE_SET, start,
116 gst.SEEK_TYPE_SET, stop)
117
118 def __on_timeout (self):
119 position = self.__playbin.query_position (gst.FORMAT_TIME) [0]

Callers 1

__on_bus_messageMethod · 0.95

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected