Questions tagged [peer-connection]

A peer connection in WebRTC is a connection between the local computer and a remote peer.

The RTCPeerConnection interface provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed.

Each peer connection holds a local description object and a remote description object, describing the two ends of the connection as they were most recently successfully negotiated.

57 questions
9
votes
1 answer

WebRTC: how to detect when a stream or track gets removed from a PeerConnection, in Firefox?

onremovestream has been deprecated (and removed from Firefox), while onremovetrack is not yet implemented in Firefox. How do I detect when a stream or track is being removed in Firefox?
Daniele Molinari
  • 541
  • 6
  • 29
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
1 answer

How to tell if pc.onnegotiationneeded was fired because stream has been removed?

I am dealing with a RTCPeerConnection (pc) which has an event handler named onnegotiationneeded. The "onnegotiationneeded" is triggered when a complete media stream is added or removed with pc.addStream or pc.removeStream. Is it possible to tell…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
6
votes
3 answers

Why my turn server doesn't work?

I can connect in any situation when using appr.tc ice servers (google turn servers). but i can't connect with my own turn server. I did config my own turn server by coturn project. I'm using google's libjingle_peerconnection api to create an…
Saeed
  • 572
  • 2
  • 7
  • 19
6
votes
1 answer

WebRTC iceGatheringChanged with state 'complete' takes far too long to fire when using TURN (~minute)

Scenario: I'm using WebRTC (Google's libjingle) on iOS and PeerConnection is setup using a TURN server and I'm waiting for all candidates to gather before I send them to the peer (I'm using SIP). The problem is that although all candidates are…
atsakiridis
  • 1,002
  • 5
  • 19
5
votes
0 answers

What is the exact reason for WebRtc setRemoteDescription: "Failed to set ssl role for the channel"?

When I want to establish a WebRtc connection I get the following error (despite having called: RTCInitializeSSL();): setRemoteDescription Error `Domain=org.webrtc.RTCPeerConnection Code=-1 "Failed to set remote answer sdp: Failed to push down…
LaLa
  • 642
  • 2
  • 7
  • 11
4
votes
1 answer

Why only one side of peer connection gets remote stream

I have a problem where only one side of peer connection gets remote stream. For both cases I add stream before creating answer/offer. const peer = new RTCPeerConnection(servers); if (localStream instanceof MediaStream) { …
vardius
  • 6,326
  • 8
  • 52
  • 97
4
votes
2 answers

How to implement "Who is talking?" feature in webrtc ios application?

I am creating an ios application using webRTC for video conferencing. I want to detect who is talking in the peer connection. To be more specific,I want to detect the audio activity of the remote peer I am connected to so that I can detect the…
codeGeek
  • 259
  • 4
  • 17
4
votes
2 answers

Web RTC Peer Discovery

So I am trying to develop a web application that has the capability to make video calls between users of the web application. Theoretically, Caller A can look in a directory in the web application, see that Caller B is online and make a video call.…
user3704351
  • 67
  • 2
  • 6
4
votes
2 answers

Only works on one-to-one of which was to be many-to-many, webrtc

I am developing a conference style application (many-to-many) for video calls this style. The code is available on GitHub but I do not have much node.js experience, hence I decided to create my own server using PHP. I created the server using…
4
votes
1 answer

Sending Local Video using Data Channels + Media Source Extension API

I have been playing around with WebRTC peerconnections for a while but it seems I am stretching what's possible with peerconnections & p2p video (at least right now) Now I have been looking at the Media Source Extensions API to maybe creating an…
JerryFox
  • 615
  • 2
  • 13
  • 25
4
votes
1 answer

Cannot set a local description in Mozilla Firefox (WebRTC)

I am working with the Answering a call documentation of Mozilla to answer a WebRTC call in Mozilla Firefox 35.0.1 but everytime I try to set a local description on the peer connection it fails. The error is an INTERNAL_ERROR with the message:…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
3
votes
1 answer

Webrtc Android DTMF Support

I am trying to implement DTMF for Android/iOS Application based out on WebRTC. Is there any API for DTMF for Android? I have tried calling the…
3
votes
1 answer

WebRTC video and Audio in IOS not working with 3G /4G but works with WIFI

I am trying to connect WebRTC video and audio in iOS connected by 3g/4g gives error but works fine with WiFi network. And after the peer connection is found the error appears [carc] CAReportingClient.mm:320:-[CAReportingClient…
3
votes
1 answer

"iceConnectionState" is "failed" without any error

Browser: Chrome 62.0.3202.94, (64 bit) OS: Ubuntu 16.04 I'm trying to create a data connection. I've done this before with this code a couple of months ago, but now I can't quite get it to work. The problem is that when I call…
manidos
  • 3,244
  • 4
  • 29
  • 65
1
2 3 4