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

How to properly close Android WebRTC connection?

I am using WebRTC Library in a service and an activity. In "onDestroy" of both components, I am trying to fully disconnect so that with the service/activity running again, the device can join room with the same procedure. Firstly, I have tried these…
Ali Has
  • 598
  • 1
  • 8
  • 24
3
votes
4 answers

getUserMedia detect front camera

I'm using the 'facingMode' constrain in order to switch between the two cameras, but I'm not able to fully decided whether the user end has an 'environment' camera (back facing camera).. it's not enough to to count the 'videoinput' of the returned…
iTaMaR
  • 189
  • 2
  • 10
3
votes
0 answers

Asymmetric video codecs for WebRTC

I wish to use different codecs between the sender and receiver. Here's an example: Alice has an older computer, and it can't do VP9 encoding in hardware, so I want her browser to send H.264 video. She can, however, decode VP9 in software without…
kltye
  • 43
  • 2
3
votes
2 answers

limit WebRTC bandwidth from the client side (browser)

I know it's possible to limit the upload (sent) bandwidth using "setParameter" on the peer-connection. I'm looking for a way to limit the download (received) and couldn't find one. (I don't have control Am I missing the concept? or there's a way to…
Adi Darachi
  • 2,137
  • 1
  • 16
  • 29
3
votes
1 answer

webrtc: mediaDevices.enumerateDevices() returns empty deviceId

I'm currently exploring webRTC and what I want to do is to get all the mediadevices info along with deviceId using navigator.mediaDevices.enumerateDevices(); and then separate it out according to its kind attribute and allow user to choose which…
Sudhir
  • 312
  • 1
  • 4
  • 10
3
votes
0 answers

Remove black background in mediastream of canvas

I am sending a mediastream of canvas over webrtc peer connection. Now, when I receive mediastream, I add mediastream to the video element which shows background black. I want to make the background transparent so that a multi-layer canvas can be…
amar_1995
  • 575
  • 3
  • 14
3
votes
3 answers

Maintain communication between two clients even if their IP addresses change

I'm trying to figure out if it is possible to have something like this scenario: Say we have two people, Alice and Bob. Alice wants to send some data (doesn't matter what this data is) to Bob, and vice versa. I know that WebRTC can be used to…
marsnebulasoup
  • 2,530
  • 2
  • 16
  • 37
3
votes
1 answer

How disable Chromium inbound permissions request when initialize RTCPeerConnection

When I initialize RTCPeerConnection, new RTCPeerConnection(...);, I'm receiving the following popup It's adding inbound rule in Windows FW, I don't need it, event if I don't allow all my flows work well I'm looking for a way to avoid this popup…
Roy Shmuli
  • 4,979
  • 1
  • 24
  • 38
3
votes
0 answers

How to handle screen rotation problems with Mozilla Firefox

I have problems with the screen orientation in Mozilla Firefox. It seems to me that screen.orientation is not supported in Firefox. We are building a SPA with Angular 9 and using webrtc inside of it, to take some pictures out of the video media…
ToelliJ
  • 61
  • 7
3
votes
1 answer

How to make an audio level indicator accessible?

I'm trying to build an accessible audio indicator for a WebRTC video chat. It should basically show how loud you're talking, when you're talking. Here is the isolated code (for Codesandbox, you need to install styled-components). import React, {…
J. Hesters
  • 13,117
  • 31
  • 133
  • 249
3
votes
0 answers

Difference Between TURN Server and SFU in WebRTC?

Scenario: PeerA want to stream a video to PeerB and PeerC. PeerA wont receive anything from PeerB and PeerC and there is no communication between PeerB and PeerC. Hole punching happens between the Peers and SFU as SFU being a WebRTC endpoint. The…
Mukesh Kumar
  • 302
  • 1
  • 2
  • 9
3
votes
1 answer

Can a WebRTC TURN "relayed transport address" be shared with multiple peers?

Scenario: Webrtcpeer1 wants to send a video (send only data) to Webrtcpeer2. It turn out that webrtcpeer2 is behind a symmetric NAT and direct communication is not possible. Now both the peers contact a turn server and get their respective "relayed…
Mukesh Kumar
  • 302
  • 1
  • 2
  • 9
3
votes
3 answers

PeerJs close video call not firing close event

I am trying to create a one-directional video app with PeerJs. I've succesfully been able to run my own peer server and connect on a button click, but I'm unable to close the connection so that the peers can receive/establish a new connection with a…
maximus1127
  • 936
  • 11
  • 30
3
votes
1 answer

Video/Audio communication

I am trying to create a video conference web app using peer/getUserMedia. Currently, when I send the unique ID to the video conference, I am able to hear/see anyone who joins my session. However, only the first person who joins my session can…
3
votes
0 answers

WebRTC is disconnected by server on LTE network only but a wifi and 5g networks are ok

I am developing a project for streaming service based on WebRTC. It's working on android app when it uses wifi network and 5G network. But, It does not work based on LTE network. I've tried many STUN and TURN server instead of…
yaho cho
  • 1,779
  • 1
  • 7
  • 19