Beispiel #1
0
 public static extern void PeerConnectionCreateOffer(IntPtr ptr, ref RTCOfferOptions options);
 /// <summary>
 /// Create an SDP (Session Description Protocol) offer to start a new connection
 /// to a remote peer.
 /// </summary>
 /// <param name="options"> A parameter to request for the offer. </param>
 /// <returns></returns>
 /// <seealso cref="CreateAnswer"/>
 public RTCSessionDescriptionAsyncOperation CreateOffer(ref RTCOfferOptions options)
 {
     m_opSessionDesc = new RTCSessionDescriptionAsyncOperation();
     NativeMethods.PeerConnectionCreateOffer(GetSelfOrThrow(), ref options);
     return(m_opSessionDesc);
 }