コード例 #1
0
        public void CreateDataChannel()
        {
            RTCDataChannelInit DataChannelInit = new RTCDataChannelInit();
            var            _dataChannel        = PeerConnection.CreateDataChannel("Deneme", DataChannelInit);
            RTCDataChannel rTCDataChannel      = (RTCDataChannel)_dataChannel;

            _rTCDataChannel         = rTCDataChannel;
            _rTCDataChannel.OnOpen += _rTCDataChannel_OnOpen;
        }
コード例 #2
0
        public IDataChannel CreateDataChannel(string label, DataChannelConfiguration dataChannelConfiguration)
        {
            var dataChannel = _peerConnection.CreateDataChannel(label, dataChannelConfiguration.ToNative());

            return(dataChannel == null ? null : new DataChannelNative(dataChannel));
        }