Questions tagged [rtcpeerconnection]

140 questions
0
votes
1 answer

webRTC - JavaScript getUserMedia and RTCPeerConnection client: perceived throughput delay and crash after about 5-10 minutes issue vs Zoom

This is really an initial fact-finding question: In the past we have been using Zoom to facilitate our audio/video meetings (which are effectively teacher: 1 student meetups). Now we have developed our own in-house JavaScript client to do the same.…
0
votes
1 answer

If WebRTC Application is started in between a Phone Call, the peer who is on call is not able to hear anything even after ending that call

I have an application on top of WebRTC. If a peer (A) clicks on the link to the application and starts it in the middle of a phone call, then that peer (A) is getting connected to peer (B) successfully. Even after ending the call, Peer A is not…
jVenki
  • 93
  • 3
0
votes
2 answers

Does the media track have to be added before the peer connection starts?

I started WebRTCPeerConnection.addTrack() after the peer connection was established. However, when implemented like this, the ontrack event did not occur. Does the media track have to be added before the peer connection starts? Is there any way to…
GBG
  • 13
  • 3
0
votes
1 answer

Do WebRTC always connect locally when using peers with same IP adress?

I'm trying to understand a bit more about webRTC so: My guess is that when running an app from localhost and establishing a peerConnection with myself ( no firewalls, vpns or symmetric nats involved ), WebRTC will connect locally using 127.0.0.1…
JSmith
  • 4,519
  • 4
  • 29
  • 45
0
votes
0 answers

Why RTCPeerConnection Foundation Doesn't Change On VPN

I connected to the Kaspersky VPN and tried to get the ICE candidate via RTCPeerConnection in JavaScript using the code below. I have used two different Wi-Fi connections such that the local IP allocated to the computer is different in each case and…
A. Sinha
  • 2,666
  • 3
  • 26
  • 45
0
votes
2 answers

Returning localDescription from RTCPeerConnection

When I try to return the localDescription from the code below, I get a response that does not contains candidate parameter under sdp, as shown in the screenshot. Can anyone please help me understand what am I missing here? Also, I am not using…
A. Sinha
  • 2,666
  • 3
  • 26
  • 45
0
votes
0 answers

Unable to send CanvasCaptureMediaStreamTrack through RTCPeerConnection

I have a simple RTCPeerConnection between two peers, to stream video. The connection works perfectly with MediaStream types. Video and camera streams are going through and received. However, when I try to send a MediaStream that contains a…
Tamás Polgár
  • 2,082
  • 5
  • 21
  • 48
0
votes
0 answers

RTCPeerConnection.CreateAnswer() fails

I am trying to set up the signaling between a browser client and unity client. the two clients use Webrtc and I am using a websocket to make the signaling happen. First, I am creating an offer on the click of a button in the browser. the offer…
0
votes
1 answer

WebRTC reconnect after lost connection (reconnection attempt)

I have a working WebRTC JavaScript application. Here is the problem: if during a web call there is a bad network connection, the call is stopped without WebRTC attempting to reconnect. I would like to improve the code of my application by adding an…
Luca Pennisi
  • 85
  • 10
0
votes
0 answers

WebRTC connection not selecting ICE candidate pair depending on order

I'm trying to establish a WebRTC connection between user A (on WiFi) and user B (on phone hotspot). The connection is successful if user B sends an offer to user A, but fails when user A sends an offer to user B. In chrome://webrtc-internals I can…
Ties
  • 165
  • 4
  • 14
0
votes
1 answer

error on WEBRTC setRemoteDescription method

I´m doing this app with Vue and socket.io using WEBRTC, but when I try to use the method of RTCPeerConnection ,setRemoteDescription, passing the sdp parameter i receive this error Uncaught (in promise) SyntaxError: JSON.parse: unexpected character…
Enrique GF
  • 1,215
  • 3
  • 16
  • 35
0
votes
1 answer

Get available and active ICE candidates for WebRTC connection

I'm having a weird issue with a WebRTC connection between 2 users on different networks. User A is using a phone hotspot, user B is on my home WiFi. When user A is the first to join the page, this user sends an offer and some ICE candidates to user…
Ties
  • 165
  • 4
  • 14
0
votes
1 answer

Why does RTCPeerConnection not show my public ip?

I am trying to understand how to use WebRTC to establish P2P connections following the example here: https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Simple_RTCDataChannel_sample. In my mind, it seems like when I create a new…
kloddant
  • 1,026
  • 12
  • 19
0
votes
2 answers

How to set WebRTC data channel max bitrate?

I would like to set the max bitrate that my WebRTC client can support. I only have access to the client (receive video frames) not to the host (sending video). How do I go about signaling that my client can only support a low bitrate (512kbps for…
alexward1230
  • 579
  • 3
  • 8
  • 25
0
votes
0 answers

WebRTC connectiong only send one candidate

I am new coding in Javascript. I am creating a WebRTC connection between my iPhone and my browser. The connection works but my code only send one candidate and I don't know if I am doing anything wrong. I would appreciate any comment or…
Juan Gil
  • 21
  • 1
  • 4