Exemplo n.º 1
0
        public void ProcessOfferAndMakeReply(string strOfferValue)
        {
#if MAKE_LOGS
            Debug.Log($"Processing Offer {strOfferValue} and building reply");
#endif
            m_dtmTimeOfLastIceCandidate = DateTime.UtcNow;
            m_perUnderlyingNetworkPeer.LocalSdpReadytoSend    -= OnReplyFinished;
            m_perUnderlyingNetworkPeer.LocalSdpReadytoSend    += OnReplyFinished;
            m_perUnderlyingNetworkPeer.IceCandiateReadytoSend -= OnReplyIceFinished;
            m_perUnderlyingNetworkPeer.IceCandiateReadytoSend += OnReplyIceFinished;
            m_perUnderlyingNetworkPeer.SetRemoteDescription("offer", strOfferValue);
            m_perUnderlyingNetworkPeer.CreateAnswer();
            m_webRtcObjectState = State.MakingReply;
        }
Exemplo n.º 2
0
 public void SetRemoteDescription(string type, string sdp)
 {
     if (peer != null)
     {
         peer.SetRemoteDescription(type, sdp);
     }
 }