예제 #1
0
 public void CreateOffer()
 {
     if (peer != null)
     {
         peer.CreateOffer();
     }
 }
예제 #2
0
        public void MakeOffer()
        {
            //add data channel ( Replace with custom build of the API later)
            m_perUnderlyingNetworkPeer.AddDataChannel();

            m_dtmTimeOfLastIceCandidate = DateTime.UtcNow;
            m_perUnderlyingNetworkPeer.LocalSdpReadytoSend    -= OnOfferFinished;
            m_perUnderlyingNetworkPeer.LocalSdpReadytoSend    += OnOfferFinished;
            m_perUnderlyingNetworkPeer.IceCandiateReadytoSend -= OnOfferIceFinished;
            m_perUnderlyingNetworkPeer.IceCandiateReadytoSend += OnOfferIceFinished;
            m_perUnderlyingNetworkPeer.CreateOffer();
            m_webRtcObjectState = State.MakingOffer;
        }