Questions tagged [webrtc]

WebRTC is a free, open project providing browsers and mobile applications with Real-Time Communications (RTC) capabilities (audio, video, and binary data streaming) via simple APIs and common set of protocols. Tags for operating environment may be helpful, e.g. [node.js] or [reactjs] or [ios] as well as specific browser, e.g. [firefox]. Questions concerning Session Description Protocol use [sdp]. Use [ortc] for Object RTC.

WebRTC offers web application developers the ability to write rich, real-time multimedia applications (think video chat) on the web, without requiring plugins, downloads, or installs. Its purpose is to help build a strong RTC platform that works across multiple web browsers, across multiple platforms.

WebRTC API support and implementations vary, widely, across browsers and operating systems. There is at least some support (as of late 2019) in up-to-date versions of most browsers. canIUse.com for WebRTC tracks the latest levels of support. Please, when asking questions about WebRTC here on Stack Overflow, mention your OS and browser by version.

Resources to learn simple examples

8953 questions
3
votes
1 answer

PeerJS receives ICE candidates but won't establish connection

I'm trying to use PeerJS for establishing a WebRTC data channel connection between peers. Specifically, I'd like one user to act as a host that can have multiple listeners and the listeners do not interact with each other, but only with the host.…
TechyTech
  • 455
  • 2
  • 13
3
votes
0 answers

Flutter Live Broadcast using WebRTC

I need to do a Live Broadcast apps using flutter on both iOS and Android. While broadcasting, the video can be recorded by both the broadcaster and viewer (Up to 500). I have did some studies and seems like WebRTC is the way to go. But I need to…
s k
  • 4,342
  • 3
  • 42
  • 61
3
votes
2 answers

Why does calling `RTCPeerConnection.close()` not send `closed` event?

When calling RTCPeerConnection.close() on a local connection, I would expect the remote connection to receive a closed connectionstatechange event. Instead, there is a disconnected (followed by a failed) connectionstatechange a few seconds later,…
Crossy
  • 43
  • 4
3
votes
2 answers

Should I use RTP or WebRTC for local network audio communication

I have a set of Raspberry Pi Zeros that I would like to use as a home intercom. I initially set them up to send audio to each other using golang with gRPC and bidirectional streaming, which works for short calls, but the lag builds up over time, so…
Reese
  • 1,746
  • 1
  • 17
  • 40
3
votes
1 answer

WebRTC can't answer an offer with multiple tracks in the same connection

I'm trying to establish a WebRTC connection with two video tracks in the same connection, just after receiving an offer. The caller can't receive all the video tracks added by the callee when answering the call. However, the caller can start a…
Daniel Koch
  • 580
  • 2
  • 11
3
votes
0 answers

Ion-sfu Flutter SDK not publishing stream

I am working on a WebRTC video platform using Ion-sfu, which has been a really great experience so far, I have the SFU up and running, the AVP to record sessions, and a browser client working beautifully using the Javascript SDK. Where I am stuck is…
Matthew Starkey
  • 677
  • 2
  • 8
  • 16
3
votes
1 answer

How to play webrtc playback in VideoJs

I have tried two use cases to play webrtc playback on videojs. After getting MediaStream from webrtc and add like the following: player.src({src:webRTCAdaptor.remoteVideo.srcObject}); I'm getting (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) error. If i do…
EMK
  • 133
  • 1
  • 10
3
votes
1 answer

How to enable VP8 on iOS WebRTC?

How to enable VP8 on iOS WebRTC? I have build webrtc on ios and I can see libvpx in webrtc source code for ios. However I do not know how to enable it. PeerConnection to createOffer only has h264 and there was no VP8 description in SDP. Thank you…
Jim
  • 338
  • 1
  • 14
3
votes
1 answer

How can I record, encrypt (in memory), and mux audio and video on android without the files getting out of sync?

We’re attempting to save video and audio from an Android device into an encrypted file. Our current implementation pipes the outputs from microphone and camera through the MediaEncoder class. As the data is output from MediaEncoder, we are…
Robert
  • 981
  • 1
  • 15
  • 24
3
votes
1 answer

currently in the P2P field, only using STUN (not use Turn Server) hole punching success rate is what?

I would appreciate you did a great job here, if you could help me answer the following questions: In the case of large scale and various NAT type devices, currently in the open source code field, only using STUN (not use Turn Server) punching…
johnny xu
  • 31
  • 2
3
votes
1 answer

How can I set up a reverse proxy for the Janus REST api and socket api in Nginx?

I have a Janus Gateway which exposes a REST api on port 8088. The web socket transport is also enabled on my janus server on port 8188. I have an Nginx reverse proxy set up for https traffic to reach my Janus server. How do I add wss support to my…
Danwize
  • 141
  • 11
3
votes
1 answer

WebRTC audio is not working in lock screen using CallKit

I have tried many solutions from here but no one is working. WebRTC is working fine and I get connected status when accepting the call while the device is locked and after the unlock the audio opens and video starts. How could I get only audio when…
Ali Aqdas
  • 437
  • 5
  • 9
3
votes
1 answer

How to supply a STUN server for webRTC

I have made a very basic WebRTC based videoconferencing app and it works great when accessing from my own local network. Now the next step is to supply it with STUN/TURN servers so that it could be used publicly. There are a lot of tutorials out…
Null Salad
  • 765
  • 2
  • 16
  • 31
3
votes
2 answers

How to mix / combine multiple WebRTC media streams (screen capture + webcam) into a single stream?

I have a live screen capture media stream returned from getDisplayMedia(), and a live webcam media stream returned from getUserMedia(). I currently render the webcam video on top of the screen share video, to create a picture-in-picture effect: I…
amiregelz
  • 1,833
  • 7
  • 25
  • 46
3
votes
1 answer

WebRTC react stream multiple tracks issue. Camera + Screen Share

I am working on a new website. You can join room calls and make a voicecall so use your webcam but you can also share your screen. The problem is when i add the track to the stream the peer doesn't work more... I don't know how to solve this. I also…