Questions tagged [rtcdatachannel]

88 questions
1
vote
1 answer

Can I use the same WebRTC channel for audio/video and file transfer?

I am a newbie to WebRTC. I am building an application that enables users to view each other's video stream, as well as exchange files. The audio/video part is implemented and working. The problem is I need to add the ability to exchange files now. I…
DrHSF
  • 11
  • 1
  • 2
1
vote
1 answer

WebRTC ICE candidate in Firefox

At the moment, I am playing around with WebRTC. My goal is to setup a datachannel between two browsers. Chrome-Chrome is working well. Now I am playing with Firefox-Firefox. Here is a MEW from my current code: var servers = { "iceServers": [{ "url":…
Dennis
  • 4,011
  • 7
  • 36
  • 50
1
vote
0 answers

Firefox RTCDataChannels not connecting

I am trying to create a RTCDataChannel connection between Chrome and Firefox. I have referenced the sample provided by Mozilla. http://mozilla.github.io/webrtc-landing/data_test.html The DataChannel was created before the createOffer method, but it…
Let
  • 71
  • 3
0
votes
0 answers

WEBRTC screen sharing : onnegotiationneeded event

I encounter a problem when I want to add a screenshare to my PeerConnection. Indeed, I use the pc.addTrack(...) function which leads to a renegotiation of my PeerConnection (onnegotiationneeded). Here is what I do in my onnegotiationneeded…
0
votes
1 answer

I want to add file transfer feature in my project, how can I do it with data channel in webRTC Flutter i didn't find any proper documentation for it

Can anyone give proper sample code for how to implement file transfer in flutter using webRTC. I have learnt how to communicate real time. I am unable to find proper documentation regarding data channels for flutter webRTC. I tried it just like for…
0
votes
1 answer

Seperating AioRTC datachannel into multiple threads

I have a two-way datachannel setup that takes a heartbeat from a browser client and keeps the session alive as long as the heartbeat stays. The heartbeat is the 'main' communication for WebRTC, but I have other bits of into (Such as coordinates) I…
0
votes
1 answer

Track upload progress using Peerjs

Is there any method to track the upload progress while sending file/data to a WebRTC peer using peerjs? import Peer from 'peerjs'; const peer = new Peer(peerId, { host: 'cloudbreeze-peer.onrender.com', secure: true }) peer.on('connection', conn =>…
0
votes
1 answer

How to do signaling in WebRTC without using WebSocket or http or mail

As far as I search, All WebRTC handshakes are done through any signaling server [ HTTP, WebSocket, etc..] even through Mail or Whatsapp. But I expect to connect without using any of them. Is there any way to archive this? If yes, please give me a…
0
votes
2 answers

Clear WebRTC Data Channel queue

I have been trying to use WebRTC Data Channel for a game, however, I am unable to consistently send live player data without hitting the queue size limit (8KB) after 50-70 secs of playing. Sine the data is required to be real-time, I have no use for…
0
votes
1 answer

Can twilio record data track along with video & audio?

My application uses the data channel to send a number of types of information between peers during a video call (text messages, button presses, phone orientation, etc). I need to be able to replay all of this data with the video recording. I don't…
0
votes
0 answers

Can i edit a message sent via webRTC data channel?

Is there a way to edit any messages sent by the RTCDataChannel API for webRTC ?
D3V
  • 88
  • 5
0
votes
0 answers

Webrtc media streaming is working but datachannel closes (doesn't start at all)

I'm trying to start desktop screen streaming from native client to web browser. When i start connection sdp exchange is ok and media streaming starts as it should. But data channel is immidiately fires "close" event. As i understand data channel…
Cozdemir
  • 177
  • 2
  • 19
0
votes
1 answer

Force UDP for Webrtc peer connection

I am using webrtc RtcPeerConnection API in Chrome. My local SDP offer is like this a=candidate:0 1 UDP 2122252543 10.100.49.26 59882 typ host a=candidate:1 1 TCP 2105524479 10.100.49.26 9 typ host tcptype active I think if UDP is not working, it…
AJLoveChina
  • 574
  • 6
  • 15
0
votes
1 answer

When does RTCDataChannel.onerror is called?

I'm making a program to transmit data with WebRTC. I want to implement RTCDataChannel.onerror because I want to deal with an error event. I read the document below, but the explanation is ambiguous. I want more specific information about the error.…
horita
  • 11
  • 4
0
votes
1 answer

Socket.io vs RTCDataChannel, as Signalling Servers?

I am new to this ! I am working for a chat application which requires text+ video chats. I explored Socket.io initially and found it very handy to develop text based chatting application (WEB). While exploring the Video chat element i came across…
Rohit Khanna
  • 693
  • 5
  • 15