def bus_message_cb(self, unused_bus, message):
if message.type == Gst.MessageType.EOS:
self.stop()
def play(self):
self.pipeline.set_state(Gst.State.PLAYING)
def bus_message_cb(self, unused_bus, message):
if message.type == Gst.MessageType.EOS:
self.stop()
def play(self):
self.pipeline.set_state(Gst.State.PLAYING)