Commit eb3cbff7 authored by Xavier Claessens's avatar Xavier Claessens

Fix setting latency on the source

parent 14567c1a
......@@ -61,9 +61,12 @@ class Application:
self.playbin = Gst.ElementFactory.make('playbin', None)
self.playbin.set_property('video-sink', sinkbin)
self.playbin.set_property('uri', 'rtspt://localhost:8555/ml1')
self.playbin.set_property('latency', 200)
self.playbin.connect('source-setup', self.source_setup_cb)
self.video = videosink.get_property('widget')
def source_setup_cb(self, playbin, source):
source.set_property('latency', 200)
def create_ui(self):
grid = Gtk.Grid.new()
grid.show()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment