rtcdatachannel

RTCDataChannel send method not sending data

|▌冷眼眸甩不掉的悲伤 提交于 2020-07-07 04:23:31
问题 I'm having a strange problem with RTCDataChannel. I'm doing some research on WebRTC and I have working WebRTC audio/video chat already. Now I wanted to add text chat and file sharing to it using RTCDataChannel. I've created RTCDataChannel like this: var dataChannelOptions = { reliable: true, maxRetransmitTime: "2000" }; dataChannel = yourConnection.createDataChannel("testDataChannel", dataChannelOptions); dataChannel.onerror = function (error) { console.log("dataChannel.OnError:", error); };

RTCDataChannel with Google Channel API

断了今生、忘了曾经 提交于 2020-06-29 10:02:40
问题 I'm trying to follow this example by Dan Ristic for RTCDataChannel browser p2p communication with Google's Channel API for signaling. It seems to be failing silently - I can't get the RTCDataChannel.onopen , RTCPeerConnection.onicecandidate , or RTCPeerConnection.ondatachannel events to fire. Client JS/HTML: <html> <head> <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> <script type="text/javascript" src="/_ah/channel/jsapi"></script> <script> $(document).ready(function(){

WebRTC datachannel with manual signaling, example please?

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-11 07:53:26
问题 I'm really struggling to get a complete example of a WebRTC datachannel example that I can copy/paste and it works. I would like a Javascript example of WebRTC datachannel with manual signaling i.e. When the example loads, it provides the Signaling data in one text box. I copy data manually (highlight, copy) and paste it in the peer's window which has a text box to accept that signaling data. I believe there needs to be an "answer" in the signaling data, so there need to be corresponding text

Using coTurn TCP allocations with DataChannel

六眼飞鱼酱① 提交于 2020-03-20 16:59:40
问题 I have configured a coturn server which I need to use with DataChannel for a chat app. I am trying to reach a point where I can get the coturn server provide me with a tcp allocation. I am using the standard call of RTCPeerConnection in JS client, providing the turn URI, username and credentials. The transport I am providing in the URI params is TCP ?transport=tcp . With all this, I am always receiving a UDP allocation and the server logs ChannelBind requests (UDP based) Question: How can I

Using coTurn TCP allocations with DataChannel

南楼画角 提交于 2020-03-20 16:57:46
问题 I have configured a coturn server which I need to use with DataChannel for a chat app. I am trying to reach a point where I can get the coturn server provide me with a tcp allocation. I am using the standard call of RTCPeerConnection in JS client, providing the turn URI, username and credentials. The transport I am providing in the URI params is TCP ?transport=tcp . With all this, I am always receiving a UDP allocation and the server logs ChannelBind requests (UDP based) Question: How can I

Using coTurn TCP allocations with DataChannel

≯℡__Kan透↙ 提交于 2020-03-20 16:57:35
问题 I have configured a coturn server which I need to use with DataChannel for a chat app. I am trying to reach a point where I can get the coturn server provide me with a tcp allocation. I am using the standard call of RTCPeerConnection in JS client, providing the turn URI, username and credentials. The transport I am providing in the URI params is TCP ?transport=tcp . With all this, I am always receiving a UDP allocation and the server logs ChannelBind requests (UDP based) Question: How can I

Using coTurn TCP allocations with DataChannel

 ̄綄美尐妖づ 提交于 2020-03-20 16:57:27
问题 I have configured a coturn server which I need to use with DataChannel for a chat app. I am trying to reach a point where I can get the coturn server provide me with a tcp allocation. I am using the standard call of RTCPeerConnection in JS client, providing the turn URI, username and credentials. The transport I am providing in the URI params is TCP ?transport=tcp . With all this, I am always receiving a UDP allocation and the server logs ChannelBind requests (UDP based) Question: How can I

Using coTurn TCP allocations with DataChannel

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-20 16:56:57
问题 I have configured a coturn server which I need to use with DataChannel for a chat app. I am trying to reach a point where I can get the coturn server provide me with a tcp allocation. I am using the standard call of RTCPeerConnection in JS client, providing the turn URI, username and credentials. The transport I am providing in the URI params is TCP ?transport=tcp . With all this, I am always receiving a UDP allocation and the server logs ChannelBind requests (UDP based) Question: How can I

Using coTurn TCP allocations with DataChannel

我的梦境 提交于 2020-03-20 16:56:37
问题 I have configured a coturn server which I need to use with DataChannel for a chat app. I am trying to reach a point where I can get the coturn server provide me with a tcp allocation. I am using the standard call of RTCPeerConnection in JS client, providing the turn URI, username and credentials. The transport I am providing in the URI params is TCP ?transport=tcp . With all this, I am always receiving a UDP allocation and the server logs ChannelBind requests (UDP based) Question: How can I

WebRTC dataChannel.readyState stalling on “connecting”

大兔子大兔子 提交于 2020-01-07 02:56:26
问题 I'm trying to understand how to use WebRTC dataChannels, but having some issues just testing them. I cloned https://github.com/JustGoscha/simple-datachannel but it doesn't seem to function. The offer is made, processed and responded to, but the dataChannel.readyState seems to stick to 'connecting'. I was able to get Video/Audio working just fine over LAN with this: https://github.com/shanet/WebRTC-Example So I know my issue isn't NAT related (there are no TURN servers in that example). Just