public void CreateAnswer() { if (peer != null) { peer.CreateAnswer(); } }
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; }