Exemplo n.º 1
0
 public static RTCSessionDescription ToRTCSessionDescription(this WebRTCSDP sessionDescription)
 {
     if (!sessionDescription.Type.HasValue)
     {
         Debug.WriteLine("WebRTCSDP type is null");
     }
     return(new RTCSessionDescription((RTCSdpType)sessionDescription.Type.GetValueOrDefault(), sessionDescription.Sdp));
 }
Exemplo n.º 2
0
 private void ReciveAnswer(WebRTCSDP obj)
 {
     // If recive answer then set replay to control
     WebRtcControl.SendAnswerReplayed(obj);
 }
Exemplo n.º 3
0
 private void ReciveOffer(WebRTCSDP obj)
 {
     // If recive offer from other client then create answer
     WebRtcControl.SendAnswerRequested(obj);
 }
Exemplo n.º 4
0
 public SdpEventArgs(WebRTCSDP sdp)
 {
     Sdp = sdp;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Set answer SDP to local peer
 /// </summary>
 /// <param name="sdp"></param>
 public void SendAnswerReplayed(WebRTCSDP sdp)
 {
     AnswerReplayed?.Invoke(this, new SdpEventArgs(sdp));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Return local peer offer to send via signaling
 /// </summary>
 /// <param name="sdp"></param>
 public void SendOfferRecived(WebRTCSDP sdp)
 {
     OfferRecived?.Invoke(this, new SdpEventArgs(sdp));
 }