Questions tagged [rtcpeerconnection]

140 questions
2
votes
1 answer

When can I consider a RTCPeerConnection to be disconnected?

I'm attempting to detect when the other side of a RTCPeerConnection has disconnected. Currently I'm doing the following with my RTCPeerConnection object: rtcPeerConnection.oniceconnectionstatechange = () => { const state =…
dbotha
  • 1,501
  • 4
  • 20
  • 38
2
votes
1 answer

How to change Webrtc rtcpMuxPolicy?

I am trying to change rtcpMuxPolicy and also the bundlePolicy, but it seems like it cannot be changed This is my code: Attempt 1: var servers = { 'iceServers': [{ 'urls': 'stun-url..' }, { 'urls': 'stun-url-2..' }, { …
ToTa
  • 3,304
  • 2
  • 19
  • 39
2
votes
1 answer

Peer connections stays in chrome://webrtc-internals/ even after it is disconnected

We have developed a SFU conferencing solution. When a user leaves the conference the peer connection does'nt end. it is showing in chrome://webrtc-internals/ with status closed. Will this be counted as an active peer connection ? Will this…
Aji Aneesh
  • 121
  • 8
2
votes
1 answer

Reconnecting serveral peerConnections after page reload

I'm creating a web application for monitoring by smartphones using WebRTC, and for the signalling server I'm using socket.io. When I'm sending a stream, I create an RTCPeerConnection object on the "watch" page that receives this stream. Streams I…
2
votes
2 answers

RTCPeerConnection and createDataChannel not working for Edge

I have been working on an application where when a person logs into an account, the IP address of the device is stored in the backend and local storage. Then when a person logs into the same account from another browser or so, it will show a popup…
2
votes
2 answers

How to destroy RTCPeerConnection properly in JavaScript?

When I create a new RTCPeerConnection(), I am unable to destroy it with peer.close(), as far as I can see, and after some time I run out of resources. When a webpage creates lots of RTCPeerConnections, it stops working after about 600 attempts and…
Tomas M
  • 6,919
  • 6
  • 27
  • 33
1
vote
0 answers

Can't receive video on webrtc when I toggle camera

I'm trying to write a method to toggle camera for turn on/off the camera. Call Peer const callPeer = (myPeer, peerId, myVideoStream, addToCalls = true) => { const call = myPeer.call(peerId, myVideoStream); if (addToCalls) { let…
1
vote
0 answers

How to remove previous unix domain socket while closing RTCpeerconnection in webrtc in nodejs

const { RTCPeerConnection } = require('wrtc') this.peerConnection = new RTCPeerConnection(this.rtcConfig) ------------- some coding -------------------------------------------------- this.peerConnection.close(); //In above code i am…
1
vote
0 answers

RTCPeerConnection connection state fail between browser and Django Server

I am using aortic to build RTCPeerConnection with the browser and the server using Django. the server can receive offer from the browser and the browser can receive answer from the server however, from the server…
1
vote
0 answers

WebRTC - RTCPeerConnection.onconnectionstatechange fires with RTCPeerConnection.connectionState = 'disconnected' without any reason

I am working on the WebRTC application for video chatting. On my local network everything works well. But when I try it to test through internet RTCPeerConnection.onconnectionstatechange fires with RTCPeerConnection.connectionState = 'disconnected'…
SuperYegorius
  • 754
  • 6
  • 24
1
vote
1 answer

WebRTC peerConnection ontrack listener doesn't trigger

First of all, issue here is different from all I found in "google" as I'm using Spring Boot as signaling server to connect two different browser's tabs or they are using two peerConnection to send stream within one tab. Peers seem to be connected…
Nonek
  • 13
  • 3
1
vote
0 answers

RTC Peer connections

I'm building social media application using node js and react js, I have problem when it comes to video / audio calls; case 1: i call from computer to mobile phone and both are in same network, it works-- case 2: i call from mobile phone browser to…
1
vote
3 answers

WebRTC Perfect Negotiation Vue 2

I'm implementing WebRTC Perfect Negotiation in my Vue 2 application. The app will have multiple viewers and a single streamer. After a lot of logging and debugging, I've resolved some of the problems that I was having. I removed the TURN server in…
cpppatrick
  • 609
  • 3
  • 12
  • 29
1
vote
0 answers

WebRTC Answer SDP returns recvonly instead of sendrecv

I have a web based WebRTC client and I am having the following functionality: Step 1. CreateOffer with both audio and video tracks set to sendrecv. Step 2. Receive and Answer with both audio and video tracks set to sendrecv. Peer to Peer A/V calls…
1
vote
2 answers

How to detect network disconnects (on an RTCPeerConnection) as soon as possible or the resulting frozen video?

I am using RTCPeerconnections to submit video and audio in a web-RTC-based video-messenger. I am able to detect network disconnects after approximately 7 seconds - yet, this is 7 seconds in which the user is staring at a frozen video and starts to…
michael
  • 13
  • 3
1 2
3
9 10