ICE candidate negotiation process
Neil Young
foreverneilyoung at googlemail.com
Fri Jul 10 18:34:21 UTC 2020
Maybe like so:
print("***ON ICE CONNECTION STATE {} {}".format(param1, param2.default_value))
But it is not helpful, since it always just returns "STATE_NEW" on different callbacks...
***ON ICE CONNECTION STATE <__gi__.GstWebRTCBin object at 0x113cf34b0 (GstWebRTCBin at 0x7fa8c52ba220)> <enum GST_WEBRTC_ICE_CONNECTION_STATE_NEW of type GstWebRTC.WebRTCICEConnectionState>
***ON ICE CONNECTION STATE <__gi__.GstWebRTCBin object at 0x113cf34b0 (GstWebRTCBin at 0x7fa8c52ba220)> <enum GST_WEBRTC_ICE_CONNECTION_STATE_NEW of type GstWebRTC.WebRTCICEConnectionState>
> Am 10.07.2020 um 20:29 schrieb Neil Young <foreverneilyoung at googlemail.com>:
>
> A bit further:
>
> self.webrtc.connect('notify::ice-connection-state', self.on_ice_connection_state)
>
> and later:
>
>
> def on_ice_connection_state(self, param1, param2):
> print("***ON ICE CONNECTION STATE {} {}".format(param1, type(param2)))
>
> ***ON ICE CONNECTION STATE <__gi__.GstWebRTCBin object at 0x112639a00 (GstWebRTCBin at 0x7fe915310220)> <class 'gobject.GParamSpec'>
>
> But I can't currently figure out, what element of the "gobject.GParamSpec" contains the value. I can access "name", "nick", "blurb", "flags", but no value...
>
>
>
>
>> Am 10.07.2020 um 12:20 schrieb Matthew Waters <ystreet00 at gmail.com <mailto:ystreet00 at gmail.com>>:
>>
>> I'm not aware of anything for this specific example, no. There are
>> plenty of other examples regarding GObject notify signalling for other
>> properties though.
>>
>> On 10/7/20 2:55 pm, Neil Young wrote:
>>> Thanks Matthew. Are you aware of any sample code, demonstrating that for GStreamer and Python?
>>>
>>>
>>>> 'ice-connection-state' and 'ice-gathering-state' on webrtcbin. Use the
>>>> GObject notify signal to track changes.
>>>>
>>>>> On 10/7/20 3:36 am, Neil Young wrote:
>>>>> Hi,
>>>>>
>>>>> I'm wondering, if there would be kind of a status callback, which provides me the ICE negotiation state. I'm using the Python bindings of GStreamer.
>>>>>
>>>>> Regards
>>>>>
>>>>> _______________________________________________
>>>>> gstreamer-devel mailing list
>>>>> gstreamer-devel at lists.freedesktop.org <mailto:gstreamer-devel at lists.freedesktop.org>
>>>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200710/4ba9c6e2/attachment.htm>
More information about the gstreamer-devel
mailing list