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

Method play_toggled

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

Source from the content-addressed store, hash-verified

720 return False
721
722 def play_toggled(self):
723 if self.player.is_playing():
724 self.player.pause()
725 self.button.set_label(gtk.STOCK_MEDIA_PLAY)
726 else:
727 self.player.play()
728 if self.update_id == -1:
729 self.update_id = gobject.timeout_add(self.UPDATE_INTERVAL,
730 self.update_scale_cb)
731 self.button.set_label(gtk.STOCK_MEDIA_PAUSE)
732
733 def scale_format_value_cb(self, scale, value):
734 if self.p_duration == -1:

Callers 7

on_eosMethod · 0.95
load_fileMethod · 0.95
create_uiMethod · 0.95
do_remuxMethod · 0.95
do_choose_fileMethod · 0.95
seek_and_pauseMethod · 0.45

Calls 3

is_playingMethod · 0.45
pauseMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected