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

Method update_scale_cb

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

Source from the content-addressed store, hash-verified

788 self.update_scale_cb)
789
790 def update_scale_cb(self):
791 had_duration = self.p_duration != gst.CLOCK_TIME_NONE
792 self.p_position, self.p_duration = self.player.query_position()
793 if self.p_position != gst.CLOCK_TIME_NONE:
794 value = self.p_position * 100.0 / self.p_duration
795 self.adjustment.set_value(value)
796 return True
797
798def main(args):
799 def usage():

Callers

nothing calls this directly

Calls 1

query_positionMethod · 0.45

Tested by

no test coverage detected