I am trying to create a 1v3 or 4v4 conferencing(whatever you call it) android app, i have successfully connected 4 people together using webrtc and socket.io. But when i disconnect one of the users i get webrtc native crash
Fatal signal 11 (SIGSEGV), code 1, fault addr 0xb8 in tid 17650 (Thread-648)
Same code works in moto c
but crashes on other devices.
webrtc version used - compile 'io.pristine:libjingle:9694@aar'
onDisconnect(){
if (null != peerConnection2) {
peerConnection2.removeStream(localMediaStream);
peerConnection2.close();
peerConnection2 = null;
}
if (null != peerConnection3) {
peerConnection3.dispose();
peerConnection3 = null;
}
if (null != localVideoSource) {
localVideoSource.dispose();
localVideoSource = null;
}
if (null != peerConnectionFactory) {
audioManager.setMode(AudioManager.MODE_NORMAL);
audioManager.setSpeakerphoneOn(false);
peerConnectionFactory.dispose(); <<<<--- THIS IS WHERE THE APP CRASHES.
peerConnectionFactory = null;
}
}
I am not sure if updating the version will help me with this bug, even if i go for updating it to new version, i am unable to find any proper documentation or blog related to it, it'll be great if you can point me to any known link(blog/documentaion) for latest version of libjingle.