remoteSessionReceived method
Called if you receive an "answer" sdp from the server
(e.g., bridging a call scenario).
sdp
The SDP string of the remote description.
Implementation
void remoteSessionReceived(String sdp) async {
final session = _sessions[_selfId];
if (session != null) {
await session.peerConnection?.setRemoteDescription(
RTCSessionDescription(sdp, 'answer'),
);
onCallStateChange?.call(session, CallState.active);
}
}