When the browser closes a WebRTC connection using RTCPeerConnection.close(), the first we seem to hear of it is a bus error like this
BUS ERROR from /GstPipeline:pipeline-101285809834361/GstWebRTCBin:webrtcbin0/GstSctpEnc:sctpenc0 - Could not write to resource.
../subprojects/gst-plugins-bad/ext/sctp/gstsctpenc.c(897): on_sctp_association_state_changed (): /GstPipeline:pipeline-101285809834361/GstWebRTCBin:webrtcbin0/GstSctpEnc:sctpenc0:
SCTP association went into error state
… which feels a bit rougher than it should be.
Is there a way to be notified of disconnection before the error?
(The notify::connection-state
signal does not get fired AFAICT)