remoteSessionReceived method

void remoteSessionReceived(
  1. String sdp
)

Sets the remote session description when an answer is received.

sdp The SDP string of the remote description.

Implementation

void remoteSessionReceived(String sdp) async {
  await _sessions[_selfId]?.peerConnection?.setRemoteDescription(
        RTCSessionDescription(sdp, 'answer'),
      );
}