You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create RTCPeerConnection with 1 media track and 1 data channel
Exchange offers and ICE candidates
Listen to RTCPeerConnection.OnClosed, cleanup, and start again
The remote end is a browser.
The problem is that sometimes when I reload the page in the browser, OnClosed never gets fired. However, onconnectionstatechange is fired first with disconnected state, and then with failed state.
Am I listening to the wrong event? I am struggling to understand lifecycle of the parts.
And the channel's onclose event does not appear to be firing either.
This is the log after the browser reloads page:
Warning: SIPSorcery.Net.SctpAssociation: SCTP packet ABORT chunk received from remote party, reason .
Debug: sipsorcery: DTLS server received close notification: warning(1), close_notify(0).
Debug: sipsorcery: SCTP closing transport as a result of DTLS close notification.
Debug: sipsorcery: DTLS server raised close notify: warning(1), close_notify(0).
Debug: sipsorcery: SCTP transport for create data channel request changed to state Closed.
Warning: sipsorcery: ICE RTP channel disconnected after 12s udp:[::]:52908 (host)->udp:192.168.0.18:53492 (prflx).
Debug: MyApp: connection state changed: disconnected
Warning: sipsorcery: ICE RTP channel failed after 18s udp:[::]:52908 (host)->udp:192.168.0.18:53492 (prflx).
Debug: MyApp: connection state changed: failed
Warning: sipsorcery: RTCP session for local ssrc 1844639367 has not had any activity for over 30 seconds.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My current setup is:
RTCPeerConnection
with 1 media track and 1 data channelRTCPeerConnection.OnClosed
, cleanup, and start againThe remote end is a browser.
The problem is that sometimes when I reload the page in the browser,
OnClosed
never gets fired. However,onconnectionstatechange
is fired first withdisconnected
state, and then withfailed
state.Am I listening to the wrong event? I am struggling to understand lifecycle of the parts.
I even have this:
And the channel's
onclose
event does not appear to be firing either.This is the log after the browser reloads page:
Beta Was this translation helpful? Give feedback.
All reactions