Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        private async void NewElement_AnswerReplayed(object sender, SdpEventArgs e)
        {
            await _peerConnection.SetRemoteDescription(e.Sdp.ToRTCSessionDescription());

            Debug.WriteLine("AnswerReplayed SetRemoteDescription complete");
        }