Questions tagged [rtcdatachannel]
88 questions
24
votes
2 answers
WebRTC channel reliability
I'd like to check my understanding of WebRTC data channels is correct, in particular the different types of channels that can be achieved by varying the ordered & maxRetransmits or maxPacketLifeTime properties to the RTCDataChannelInit dictionary.…

dbotha
- 1,501
- 4
- 20
- 38
13
votes
2 answers
How are data channels negotiated between two peers with WebRTC?
The WebRTC RTCPeerConnection interface has a createDataChannel method and an ondatachannel event handler. How do these interact? How do I create a single data channel that can be used to send/receive data between two peers?
Also, the…

Taylor Brandstetter
- 3,523
- 15
- 24
11
votes
1 answer
Working Hello World WebRTC DataChannel Examples with Signaling Implemented
The intent is for this to become a Community Wiki post that is kept up-to-date so developers interested in implementing communication of JSON messages browser-to-browser (p2p) with WebRTC DataChannels have simple yet functional examples.
WebRTC…

Lightbeard
- 4,011
- 10
- 49
- 59
8
votes
1 answer
A complete example for a WebRTC datachannel with manual signaling
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…

khalidsafir
- 165
- 1
- 9
7
votes
2 answers
create and transmit custom mediastream in webrtc
I want to use canvas element as mediastreamsource of video part of the webrtc communication, any directions would be helpful, scoured the net, not finding much resources discussing this topic
* Long Background Story *
The problem, I cannot send…

mido
- 24,198
- 15
- 92
- 117
6
votes
1 answer
WebRTC RTCDataChannel - how to configure to be reliable?
I fired up a RTCDataChannel, and, by default it appears to be in unreliable mode.
I want to configure it to be reliable to get guaranteed packet delivery, but the RTCDataChannelInit configuration doesn't seem to have a setting for this.
dictionary…

Andy Hin
- 30,345
- 42
- 99
- 142
5
votes
1 answer
Why are the messages sent over WebRTC received in a different order sometimes?
I use ordered set to true, however when many (1000 or more) messages are sent in a short period of time (< 1 second) the messages received are not all received in the same order.
rtcPeerConnection.createDataChannel("app", {
ordered: true,
…

Walle Cyril
- 3,087
- 4
- 23
- 55
5
votes
3 answers
new PeerConnectionFactory() gives error on android
I am trying to implement WebRTC DataChannel on Android. I want to create a simple peerconnection object which will open DataChannel to send data over the network using WebRTC. I am getting error when I try to create my PeerConnection Object. I…

SamFast
- 1,054
- 2
- 16
- 31
5
votes
2 answers
Creating and using a data channel between two peers with webRTC
I am trying to setup a peer to peer file sharing system using WebRTC. I'm able to open a data channel on each side, but I can't send messages from one user to another. Moreover, if one peer closes the channel, the other, the onclose event is only…

bsuire
- 1,383
- 2
- 18
- 27
4
votes
0 answers
WebRTC error: Failed to set remote offer sdp: Failed to apply the description for 0: Failed to setup RTCP mux
I am trying to establish a WebRTC data channel between my phone and my browser. 50% of the time it worked. 50% of the time it would not work. The error message would read:
DOMException:
Failed to execute 'setRemoteDescription' on…

Chong Lip Phang
- 8,755
- 5
- 65
- 100
4
votes
1 answer
Running Chrome Webrtc Logs
Due to some problem with failing Datachannel (onmessage stop working after 1 hour - approximately 1 GB data send), I was trying to get WebRTC logs on newest Chrome (57) for Windows.
I was trying with official instrction from…

Marcin Zieleźny
- 311
- 3
- 7
4
votes
1 answer
Failed to set local answer sdp: Called in wrong state: STATE_INPROGRESS
I have two clients :
1) Chrome (version 50.0.2661.102 m) on Windows 7 PC
2) Chrome (version 50.0.2661.89) on Android tablet
Both are in the same network (so no need for STUN/TURN server).
I use my own signal server built with node.js (webSocket) on…

user1621010
- 81
- 2
- 8
4
votes
4 answers
RTCDataChannel send method not sending data
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…

Maciej Szymczakowski
- 87
- 2
- 6
4
votes
1 answer
webrtc: failed to send arraybuffer over data channel in chrome
I want to send streaming data (as sequences of ArrayBuffer) from a Chrome extension to a Chrome App, since Chrome message API (includes chrome.runtime.sendMessage, postMessage...) does not support ArrayBuffer and JS arrays have poor performance, I…

Imskull
- 1,316
- 14
- 16
4
votes
1 answer
Sending Local Video using Data Channels + Media Source Extension API
I have been playing around with WebRTC peerconnections for a while but it seems I am stretching what's possible with peerconnections & p2p video (at least right now)
Now I have been looking at the Media Source Extensions API to maybe creating an…

JerryFox
- 615
- 2
- 13
- 25