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
0
votes
0 answers

How to share local video file's stream using Webrtc

i tried to share local video file's stream in webrtc. it was successful in tomcat localhost but fails on running in website. just when i share navigator.mediaDevices's stream it works every where but sharing video file's stream works only in…
Mahdi
  • 57
  • 6
0
votes
0 answers

how to initialization webrtc Native Android client peerconnection (C++)

I am trying to create an application that uses webrtc data channels, to create a peer connection to an existing server. The client must run a native application on android (no Java of any kind, JNI might be acceptable though if it is the only way,…
0
votes
1 answer

WebRTC with multiple Peer Connections - Stream between existing peer connections stop when a new connection is created

I am creating a video chat application for multiple users.The host initiates the call, when a second participant joins, a Peer Connection is created between host and the second participant. When the third person joins, Peer connections are created…
Abhishek Pandey
  • 300
  • 1
  • 13
0
votes
0 answers

How to remove camera icon from the browser address bar even after closing the video streams

I have tried using this code to remove icon of camera and microphone that appeared in browser even after closing the stream var videoTrack = this.localStream.getVideoTracks()[0] if(videoTrack){ this.localStream.removeTrack(videoTrack) …
0
votes
1 answer

Should I wait for RTCPeerConnection.setRemoteDescription() & RTCPeerConnection.addIceCandidate() Promises to settle?

RTCPeerConnection.setRemoteDescription() returns a Promise that resolves once the value of the connection's remoteDescription is successfully changed. Do I need to wait for this Promise to resolve successfully before…
dbotha
  • 1,501
  • 4
  • 20
  • 38
0
votes
1 answer

OnNegotiationNeeded event in webrtc.PeerConnection not found (pion golang). But in official docs it show that it's there

ur.com/3Nydn.png The official docs pion webrtc doc shows that *func (PeerConnection) OnNegotiationNeeded exists. But actually this event is not present in the PeerConnection object. It can be checked from the given screenshot. Also other events are…
0
votes
1 answer

iOS Swift WebRTC - Failed to set remote offer sdp: Failed to set remote video description send parameters

I am trying webRTC video call between iPhone devices. One application is creating the offer SDP as below. When i tried to set this SDP, am getting error in another application as Error Domain=org.webrtc.RTCPeerConnection Code=-1 "Failed to set…
0
votes
1 answer

Failed to create PeerConnection, exception: Failed to construct 'RTCSessionDescription': parameter 1 ('descriptionInitDict') is not an object

Frontend code:- let socket = io(); socket.on(`connect`, () => { console.log(`new User Connected`); }); jQuery(`#video-form`).on(`submit`, (event) => { …
0
votes
0 answers

in iOS webRTC peer connection does not allow audio and video on mobile data-connection but works fine on wifi connection

Error shown on debug console : block invoke: No valid RTCReporting and the session was started.
0
votes
0 answers

js peerConnection doesn't connect if using mobile internet

Description: I'm using peerConnection between two computers and send mediaStream from canvas to the video-element of other computer Problem: If I'm using mobile internet on computer that connect's to host computer then connection readyState standing…
Vyacheslav
  • 99
  • 3
  • 8
0
votes
0 answers

WebRTC createOffer error

Using Firefox 53.0.2 (32bit) on Windows 10 64 bit. I am getting error when trying to createOffer on a RTCPeerConnection in which I have not added any local media stream and set var sdpOptions = { 'mandatory': { 'OfferToReceiveAudio': true,…
user1428926
  • 105
  • 2
  • 7
0
votes
1 answer

WebRTC Ice State = "failed" black Video

in about:webrtc in firefox my IceState is always "in progress" until it fail. If i use the website in local it works, but if a friend try to call me it doesn't work the remote starts but it's blank. my turn stun server: {…
Marco
  • 23
  • 1
  • 7
1 2 3
4