Questions tagged [rtcdatachannel]

88 questions
2
votes
1 answer

WebRTC dataChannel.readyState stalling on "connecting"

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…
QRXQ
  • 148
  • 1
  • 6
2
votes
1 answer

WebRTC Data Channel with gzip compression

Data are internally compressed with permessage-deflateextension before sending to server via WebSocket. What's about WebRTC? Does Data Channel API support compression?
Lewis
  • 14,132
  • 12
  • 66
  • 87
2
votes
3 answers

RTCDataChannel not working iOS

I'm using RTCDataChannel. But messages which i'm sending through the channel are not receiving at the other peer. Here is the code: let audioConstraint : RTCPair = RTCPair(key: "OfferToReceiveAudio", value: "true") let…
Dev
  • 3,885
  • 10
  • 39
  • 65
2
votes
2 answers

Using PeerConnection.createDataChannel() in Android

I have built webrtc for android and have included the jar file in my project. I want to attach data channel to my PeerConnection object. On web, we do following in javascript : sendChannel = pc.createDataChannel("sendDataChannel", {reliable:…
SamFast
  • 1,054
  • 2
  • 16
  • 31
2
votes
2 answers

How do I initiate a WebRTC data channel?

I'm trying to create a WebRTC data channel between clients using web sockets. I listed some ICE servers var rtcsettings = { iceServers: [ {url: "stun:stun.ekiga.net"}, {url: "stun:stun.voipbuster.com"}, {url:…
Pepijn
  • 4,145
  • 5
  • 36
  • 64
2
votes
1 answer

WebRTC - DataChannel - Suitable for mobile internet?

I used this code, which is explained here to create a webrtc datachannel connection without using any fancy libraries. Websockets are used for signaling. Now, when I run the node app on my server, which has a global IP, I can connect with two…
Kr0e
  • 2,149
  • 2
  • 24
  • 40
2
votes
2 answers

WebRTC and DataView. How to send dynamic amount of bytes?

You can send DataView through WebRTC DataChannel. Source: https://groups.google.com/forum/#!topic/discuss-webrtc/JlU2ItCJuZU This is great, because since then it isn't necessary to send always whole ArrayBuffer. But.. You can not dynamically change…
ElSajko
  • 1,612
  • 3
  • 17
  • 37
2
votes
0 answers

WebRTC: Add ice candidate error on established peerconnection

I am working on webRTC. I create a peerconnection between peer1 and peer2, and create datachannel on it. All things goes well. Then I hope to add video stream base on this PeerConnection. According to this question, I send offer and answer on…
王令宇
  • 21
  • 3
2
votes
2 answers

Is RTCDataChannel send() a synchronous/blocking call?

I'm trying to send a file in chunks over WebRTC, and I'm wondering if I can create a callback function to be called after RTCDataChannel.send() finishes sending each chunk of the file. Is RTCDataChannel.send() a synchronous/blocking call? If so, my…
Hristo
  • 45,559
  • 65
  • 163
  • 230
1
vote
1 answer

NodeJS WebRTC app using DataChannel isn't working in production server

I created a simple peer-to-peer app using NodeJS and WebRTC for something like a one-to-many livestreaming application. So far it is working on my localhost but when I deployed the app on a production VM server on Google Cloud Platform, I can't…
bassicplays
  • 328
  • 1
  • 7
  • 21
1
vote
0 answers

WebRTC ICE Failure when using DataChannel

I am building an application which requires peer 2 peer communication of generic data, and webRTC seemed like a nice way to do it. However, when attempting to make the p2p connection with the DataChannel, I keep encountering ICE Candidate failure on…
Lourens
  • 104
  • 1
  • 11
1
vote
1 answer

Unable to establish WebRTC connection with Node JS server as a peer

I am trying to send images captured from a canvas to my NodeJS backend server using the WebRTC data channel. That is I am trying to make my server a peer. But for some reason, I am unable to establish a connection. Client Side async function…
Rohit
  • 495
  • 9
  • 16
1
vote
1 answer

How do I play a stream of data with custom but partially supported MimeType in browser?

Bringing this over from softwareengineering. Was told this question may be better for stackoverflow. I am sending a video stream of data to another peer and want to reassemble that data and make that stream the source of a video element. I record…
1
vote
0 answers

OBS WebRTC data channel not connecting

I have a project that requires a WebRTC data channel to work in OBS. It works great on Windows but won't connect on Mac. An easy way to test it is to open up this page in a browser that supports webRTC:…
Castles
  • 897
  • 1
  • 10
  • 29
1
vote
1 answer

Using coTurn TCP allocations with DataChannel

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,…
KAD
  • 10,972
  • 4
  • 31
  • 73