Hi,
I would like to know if there is a reliable way to detect the remote peer disconnection/shutdown with the Native API.
I know the clean way is to always signal the shutdown to the other peer, but this might not be the case if, for some reasons, one peer abruptly "kills" the connection without signalling (as a concrete example, just think of a user closing his/her browser)
Basically, I would expect the "local" PeerConnectionObserver to be triggered thanks to some callbacks when the remote peer disconnection happens.
But in my test cases (LAN) this never happened. No callback is *ever* invoked when the remote peer abruptly closes his browser during an on-going video/audio streaming.
Could you give me some hints or point out the right way to detect this situation? If you could also point out the portion of code in the /peer client example, I'd appreciate it, as I could not find where/if this situation is handled.
I have been told that getStats can be helpful, but before looking deeply at it, I'd like to know if and why other callbacks in the observer are never called.