private async void NewElement_AnswerRequested(object sender, SdpEventArgs e) { await _peerConnection.SetRemoteDescription(e.Sdp.ToRTCSessionDescription()); Debug.WriteLine("AnswerRequested SetRemoteDescription complete"); var answerDesc = await _peerConnection.CreateAnswer(); Debug.WriteLine("AnswerRequested CreateAnswer complete"); await _peerConnection.SetLocalDescription(answerDesc); Debug.WriteLine("AnswerRequested SetLocalDescription complete"); Element.SendAnswerRecived(answerDesc.ToWebRTCSDP()); }
private async void NewElement_AnswerReplayed(object sender, SdpEventArgs e) { await _peerConnection.SetRemoteDescription(e.Sdp.ToRTCSessionDescription()); Debug.WriteLine("AnswerReplayed SetRemoteDescription complete"); }