using libjingle for video call android. Usecase is Call should be reconnected when the network is reconnected. So, what is happening is When the network lost and the peer connection state is disconnected and then went to a failure state. Getting crash while trying to reconnect again when network resumes. Here is below code used for reconnection.
var iceRestartConstraint =
MediaConstraints.KeyValuePair("IceRestart", "true");
if (mRtcConstraint?.mandatory!!.contains(iceRestartConstraint)) {
mRtcConstraint?.mandatory!!.add(iceRestartConstraint);
}
mPeerConnection?.createOffer(sdpObserver, mRtcConstraint)
crash :
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 3630 (signaling_threa), pid 3541 (droid.ivvsample)
Can anybody tell me what the issue for a crash?
Note : following the below link https://stackoverflow.com/a/49450225/1954763
Or can anybody tell me how to reconnect the call if peer connection fails?