Set "streamable" property of flvmux to True.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 16 Jun 2021 21:18:56 +0000 (23:18 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 16 Jun 2021 21:18:56 +0000 (23:18 +0200)
lagarde.py

index f8c398f8bffac574fdd2936e7231cb46e5457146..7c982c3b9bff049e0c593ae4861bb6a2bf701b29 100755 (executable)
@@ -171,6 +171,7 @@ class WebRTCClient:
                 capsfilter = Gst.ElementFactory.make('capsfilter')
                 capsfilter.set_properties(Gst.Caps.from_string('video/x-h264,stream-format=(string)avc'))
                 flvmux = Gst.ElementFactory.make('flvmux')
+                flvmux.set_property('streamable', True)
                 sink = Gst.ElementFactory.make('rtmpsink')
                 sink.set_property('location', self.rtmp_uri)
                 assert q and conv and enc and capsfilter and flvmux and sink