MCPcopy Index your code
hub / github.com/GStreamer/gst-python / __init__

Method __init__

old_examples/play.py:21–31  ·  view source on GitHub ↗
(self, videowidget)

Source from the content-addressed store, hash-verified

19
20class GstPlayer:
21 def __init__(self, videowidget):
22 self.playing = False
23 self.player = gst.element_factory_make("playbin", "player")
24 self.videowidget = videowidget
25 self.on_eos = False
26
27 bus = self.player.get_bus()
28 bus.enable_sync_message_emission()
29 bus.add_signal_watch()
30 bus.connect('sync-message::element', self.on_sync_message)
31 bus.connect('message', self.on_message)
32
33 def on_sync_message(self, bus, message):
34 if message.structure is None:

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected