Hi there, I’m trying to setup the react-native-webrtc in our project. Unfortunately I encountered an issue during setting the localDescription for SDP answer. When I call peer.setLocalDescription with created answer the android app is being closed, no logs, no info. Did anyone have similar problem and know how to solve it?
peer
.setRemoteDescription(new RTCSessionDescription(payload))
.then(() => {
return peer.createAnswer();
})
.then(answer => {
return peer.setLocalDescription(answer);
})
.then(() =>
this.socket.emit("message", { payload: this.peer.localDescription })
);