webrtcbin ice-state-connection doesn't change to 'disconnected'

givip pataridzegivi at gmail.com
Fri Oct 25 13:50:32 UTC 2019


I have a pipeline with only 'Data Channel',
I can successfully establish connection with remote peer and even exchange
data (string).

When I close connection on the other side, GStreamer hasn't any reaction.

I tried to poll any state propertires in webrtcbin (every 5 seconds):

gint state;
g_object_get(webrtcbin, "connection-state", &state, NULL);
GST_DEBUG("Connection State webrtcbin: %d", state);

gint sig_state;
g_object_get(webrtcbin, "signaling-state", &sig_state, NULL);
GST_DEBUG("Signalling State webrtcbin: %d", sig_state);

gint ice_state;
g_object_get(webrtcbin, "ice-connection-state", &ice_state, NULL);
GST_DEBUG("ICE State webrtcbin: %d", ice_state);

gint ice_gath_state;
g_object_get(webrtcbin, "ice-gathering-state", &ice_gath_state, NULL);
GST_DEBUG("ICE Gathering State webrtcbin: %d", ice_gath_state);


But all state remain 0 always.


A little bit different situation with 'Media channel':

'connection-state' and 'signalling-state' are the same 0;

'ice-connection-state', 'ice-gathering-state' changes to 2 when CONNECTED
and remains in this state even remote peer had been disconnected.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list