/// <summary>
 /// Create an SDP (Session Description Protocol) answer to start a new connection
 /// to a remote peer.
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public RTCSessionDescriptionAsyncOperation CreateAnswer(ref RTCAnswerOptions options)
 {
     m_opSessionDesc = new RTCSessionDescriptionAsyncOperation();
     NativeMethods.PeerConnectionCreateAnswer(GetSelfOrThrow(), ref options);
     return(m_opSessionDesc);
 }
Ejemplo n.º 2
0
 public RTCSessionDescriptionAsyncOperation CreateOffer()
 {
     m_opSessionDesc = new RTCSessionDescriptionAsyncOperation();
     NativeMethods.PeerConnectionCreateOffer(GetSelfOrThrow(), ref RTCOfferAnswerOptions.Default);
     return(m_opSessionDesc);
 }