コード例 #1
0
 public void CreateAnswer()
 {
     if (peer != null)
     {
         peer.CreateAnswer();
     }
 }
コード例 #2
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;
        }