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