Questions tagged [rtcpeerconnection]

140 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
9
votes
2 answers

How to use WebRTC with RTCPeerConnection on Kubernetes?

I would like to build a web application that processes video from users' webcams. It looks like WebRTC is ideal for this project. But, I'm having a hard time creating a peer connection between the user's machine and a pod in my Kubernetes cluster.…
Andrew
  • 743
  • 6
  • 17
9
votes
1 answer

How to set remote description for a WebRTC caller in Chrome without errors?

I hope there is no flaw in the logic. Step 1: caller creates offer Step 2: caller sets localDescription Step 3: caller sends the description to the callee //------------------------------------------------------// Step 4: callee receives the offer…
Satnam Sandhu
  • 610
  • 1
  • 10
  • 25
8
votes
2 answers

WebRTC does not work in the modern browsers when a peer is not behind a NAT because of the obfuscating host address

While troubleshooting my web app, I found draft-mdns-ice-candidates, which is about obfuscating addresses in host candidates by using mDNS. And I found that when the two peer (agent L, agent R) is in a topology as in the Figure 7 below, the WebRTC…
Gorisanson
  • 2,202
  • 1
  • 9
  • 25
6
votes
0 answers

WebRTC connection fails occasionally when connecting two RTCPeerConnections in the same browser tab

I'm using WebRTC to facilitate peer to peer connections for a multiplayer browser game. One peer is chosen as the host to which other client peers will connect. The host peer runs both client & server logic. All clients (including the host client)…
dbotha
  • 1,501
  • 4
  • 20
  • 38
5
votes
2 answers

RecordRTC: Ondataavailable called twice. Only first file is proper, others are corrupted or too small

I want to record local and remote stream at the interval of 2 seconds and upload it to the server with Ajax. But the problem is, the method ondataavailable is called twice so the same video is uploaded to the server twice. The first video is…
5
votes
0 answers

RTCPeerConnection m-lines do not match offer

I am developing a WebRTC video streaming program which must be able to renegotiate rtc connections when a user wants to add a video stream. As it is my program closes the existing RTCPeerConnection sets the Connection variable to null then creates a…
Pj Rigor
  • 391
  • 6
  • 17
5
votes
0 answers

WebRTC Connection on localhost without an internet connection

I'm trying to create a RTCPeerConnection between a camera-service written in Python with aiortc and a web front-end in javascript without an internet connection. The camera-service accesses the usb-camera and provides the stream for two other…
qube13
  • 85
  • 2
  • 11
5
votes
2 answers

How to reset the webrtc State?

I have a problem, sometime I need to reset the WebRTC state (for example I sometimes receive this error: Failed to set remote offer sdp: Called in wrong state: kHaveLocalOffer But is it possible to do so without dropping and creating a new…
zeus
  • 12,173
  • 9
  • 63
  • 184
4
votes
2 answers

Push local WebRTC stream to a NodeJS server in the cloud

I have a task, but I can't seem to get it done. I've created a very simple WebRTC stream on a Raspberry Pi which will function as a videochat-camera. With ionic I made a simple mobile application which can display my WebRTC stream when the phone is…
3
votes
0 answers

Can I use the same WebRTC peer connection object multiple times for different connections (not concurrent)?

Think of a scenario where, Peer A is connected to peer B Peer A disconnects Peer C wants to connect to Peer B In this case, can peer B use the same PeerConnection object to connect with peer C? Or should it create a new object? I built a chat…
Manu Soman
  • 153
  • 11
3
votes
1 answer

send data file to another computer with RTCPeerConnection?

how can I change the code so that the computer1 code connects to the code of computer 2(computer1 and computer2 are not the same computers but on the same network). It works locally but not when it's two different computers computer 1 and computer2…
Please help me
  • 73
  • 3
  • 13
3
votes
2 answers

webRTC meaning of remote video track muted / enabled

Having implemented a couple years back a mechanism for signaling via a data channel message that a remote user muted their local video (e.g., set enable to false) and then taking the appropriate action on the remote side (e.g., showing the remote…
SBG
  • 357
  • 4
  • 17
3
votes
0 answers

App crashing on disconnecting call webRTC android

In my app, I have implemented webRTC. A host goes live and multiple guests can join him to watch his stream just like Facebook Live or insta Live. But when a stream is live and have any guests, I disconnect the stream by host side. It crashes. The…
harperdev7
  • 153
  • 1
  • 7
3
votes
3 answers

WebRTC with perfect negotiation - Rollback on mobile Safari does not work

I am trying to implement perfect WebRTC negotiation for my small video conferencing application by considering the examples from the following page: https://blog.mozilla.org/webrtc/perfect-negotiation-in-webrtc/ Unortunately I did not manage to make…
gokumc
  • 138
  • 1
  • 9
1
2 3
9 10