Questions tagged [rtcpeerconnection]

140 questions
1
vote
1 answer

WebRTC error - RTCPeerConnection.connectionState failed

I have a problem with a video call project I created. I followed the steps in this video https://www.youtube.com/watch?v=_3exOT53faw&ab_channel=CodeShell, but I get an error because RTCPeerConnection.connectionState is failed. According to…
1
vote
1 answer

WebRTC three-ways communication is creating this error: Failed to set remote answer sdp: Called in wrong state: stable

I have been trying to create three-ways communication similar to this: User1 sends an invitation to user2 and user3 User2 receives the invitation from user1 and answers. At the same time, User2 creates another invitation, and sends it to user3 user3…
sadiq ali
  • 67
  • 1
  • 8
1
vote
1 answer

How to set an answer as LocalDescription in aiortc (python)?

I'm trying to perform signaling using python websocket, then create peer2peer connection using aiortc, to achieve webRTC-based video streaming using pure python. I have managed to send an offer from a peer to another and setRemoteDescription…
Ahmad Alhilal
  • 444
  • 4
  • 19
1
vote
1 answer

Webrtc Swift - Thread 1: EXC_BAD_ACCESS (code=1, address=0xd000000000000040)

I am using Janus videoroom with Webrtc. Everything working fine. But when i go for ending call. And dismiss the current view controller - App Crashed. I am unable to get the point of crashing so i can resolve. the current view disappeared fine also.…
Sajid Zeb
  • 1,806
  • 18
  • 32
1
vote
1 answer

RTCPeerConnection replaceTrack only changing stream for the remote peer

I am new to RTCPeerConnection (WEbRTC), so please bear with me. So far I am able to get to the point where I can replace tracks on the run by switching camera or screen sharing in my app. But I noticed it in 2 browser tabs that newly replaced track…
Dev Chauhan
  • 531
  • 1
  • 4
  • 19
1
vote
1 answer

Should I send a WebRTC answer before my side's localMedia tracks were added?

I'm building a video calling app using WebRTC which allows one peer to call another by selecting someone in the lobby. When peer A sends a call request, the other peer B can accept. At this point, WebRTC signaling starts: Both peers get their local…
Stephen B
  • 141
  • 2
  • 13
1
vote
0 answers

Cannot get Ice Candidates for both local and remote Peer Connections on Chrome, but, getting it for Firefox

I'm trying to make a video call using WebRTC on the local same machine. I can see the remote video on Firefox. But I can't see it on Chrome. When I console logged my code I found that event.candidate is null for both…
Rohan
  • 52
  • 1
  • 4
1
vote
2 answers

How does audio and video in a webrtc peerconnection stay in sync?

How does audio and video in a webrtc peerconnection stay in sync? I am using an API which publishes audio and video (I assume as one peer connection) to a media server. The audio can occasionally go out of sync up to 200ms. I am attributing this to…
blackirishman
  • 903
  • 1
  • 10
  • 23
1
vote
0 answers

Add a video stream in an ongoing audio stream between connected peers in react-native-webrtc

I have an application in which I have implemented audio/video calling between web ( Reactjs ) and mobile ( React Native ). I am using react-native-webrtc for mobile side peer. When an audio call is connected and peer connections are created, the…
1
vote
1 answer

Distinguishing kinds of tracks on the remote end of RTCPeerConnection

What is a good way to distinguish track's on the remote end of an RTCPeerConnection in the ontrack event? Say I want to treat microphone tracks differently from the system sound tracks, how do I do this?
1
vote
1 answer

WebRTC Media Server: Managing long-lived peer connections

I'm starting off with WebRTC and this is largely a design question. Looking for the pros and cons of two competing approaches. Context I'm creating a media server that will stream video to multiple clients. Each client can request one or more video…
1
vote
1 answer

Android WebRTC with PeerConnection

I need to create an app for android with Java for voice call, the data which are provided to me are: iceServer: ["stun:stun.l.google.com:19302"], channelName and EventName. Are they enough to build an application for voice calls or even needed…
Rinor
  • 27
  • 4
1
vote
0 answers

webrtc video call working on local network but on internet remote video is not loading

Found Many articles on googling but not found any helpful i am using asp.net MVC as signaling server Please review the code here and demo here The Solution is working fine on local network but when i try on internet with two different internet…
zubair Ahmad
  • 121
  • 3
  • 11
1
vote
0 answers

WebRTC - Getting candidate as null for the first time in onIceCandidate

I was doing a couple of cross-browser testing and while testing with Chrome to Firefox (on receiving side), I always run into this problem for the first time. After refresh it seems to be working fine. I have a event handler bound to my…
Gautam Kumar Samal
  • 758
  • 1
  • 7
  • 23
1
vote
1 answer

How does other end understand what is my external ip if RTCPeerConnection.createOffer() says only my local ip?

I do: configuration = { iceServers: [ { urls: [ 'stun:stun1.l.google.com:19302', ], }, ], iceCandidatePoolSize: 10, }; local_conn = new RTCPeerConnection(configuration); local_offer = await…
Marat Mkhitaryan
  • 844
  • 2
  • 11
  • 25