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

Media stream output from camera in expo react native

I am trying to make a peer to peer video call app. I am using expo for the front end and I want to know how to get the media stream from the mobile camera to pass it to the peer.currently this can be achieved using react-native-webrtc but expo does…
vinay sandesh
  • 918
  • 9
  • 8
3
votes
1 answer

DOMException: Permission denied - navigator.mediaDevices.getUserMedia( );

I am trying to access the webcam (more specifically the phone camera) using navigator.mediaDevices.getUserMedia(). However, no matter what I try, I am not getting the prompt to 'allow use of the camera'. I am primarily using Chrome. However, I have…
DigitalM0nkey
  • 127
  • 1
  • 3
  • 8
3
votes
2 answers

Why doesn't WebRTC work with Symmetric NAT?

Let's say we have two peers - A & B - trying to establish a WebRTC peer connection through Symmetric NAT. They exchanged the ICE candidates via signalling. A's public address: IP_A : Port_A B's public address: IP_B : Port_B First, A tries to connect…
Manu Soman
  • 153
  • 11
3
votes
1 answer

Can I capture a single HTML div via getDisplayMedia?

I was working on screen capture API and created some little projects about this. My question is, can I capture a custom HTML div instead of capturing tabs, windows or screens? This is the code part that I used for capturing screen. captureStream…
T.Demirer
  • 118
  • 9
3
votes
2 answers

Safari 14.0.3 getUserMedia (WebRTC) permission prompt a second time after disallowed the first one

i think having an unexpected getUserMedia behaviour in Safari and i would like to know if i miss something. In Chrome/Firefox if i dont allow the first getUserMedia({audio: true, video: true}) prompt every next call to it will fail with the error:…
Adam Soto
  • 174
  • 2
  • 14
3
votes
1 answer

How to build webRTC Framework for ios

I want to build the WebRTC framework. but I have some problems. Google provides guide about this. https://webrtc.github.io/webrtc-org/native-code/ios/ here is my code # debug build for simulator gn gen out/ios_sim --args='target_os="ios"…
hw.Jeon
  • 31
  • 3
3
votes
0 answers

Can I select multiple audio output devices in javascript

I am developing a webRTC app that includes two audio players, each of which should output their audio simultaneously to a distinct audio device. The user would select, e.g., "Internal Speakers" as the output for one stream, and "External Headphones"…
Arlo
  • 31
  • 3
3
votes
0 answers

How whatsApp managed to always receive call notification in Android?

I am working on a VOIP calling app based on WebRTC. For the signalling I'm using websocket which is implemented on a background service. But most of the case the service get killed by the OS, so I implemented Firebase Cloud messaging (FCM) to send…
3
votes
0 answers

Ring phone on webrtc video call (flutter webrtc)

Hi I am trying to create a one to one video call in flutter webrtc. It works perfectly, but the second user has to click on the notification ( send through fcm) which opens the app and then click on a button to join the video call, hence user…
Prashant Pandey
  • 221
  • 3
  • 16
3
votes
0 answers

Can I use the same WebRTC peer connection object multiple times for different connections (not concurrent)?

Think of a scenario where, Peer A is connected to peer B Peer A disconnects Peer C wants to connect to Peer B In this case, can peer B use the same PeerConnection object to connect with peer C? Or should it create a new object? I built a chat…
Manu Soman
  • 153
  • 11
3
votes
1 answer

Changing AVAudioSession category from playback to playAndRecord

I have an audio streaming app based on WebRTC, so there are rooms with speakers and listeners. Those listeners can be moved to be speakers, or speakers could be moved to be listeners. Now, iOS 14 has this orange indicator when microphone is in use…
cokamotka
  • 105
  • 1
  • 6
3
votes
1 answer

Blackscreen on IOS WebRTC js

I’m trying to develop a webrtc video call system between mobile devices and computers. The mobile device sends the video stream of his to the computer. In the mobile device the UI only shows the video it is recordings via its camera, in android this…
3
votes
2 answers

cannot read property 'emit' of undefined socketio

I'm building a project using socket.io. while running getting the error "TypeError: Cannot read property 'emit' of undefined". server code is given below: server.js const express = require('express') const app = express() const server =…
SurajitCh
  • 33
  • 3
3
votes
2 answers

video.captureStream stops when video is over

I'm building a custom WebRTC solution that allows you to use an mp4 file as if it was your camera. To do that, I'm creating a
Maurício Giordano
  • 3,116
  • 4
  • 32
  • 60
3
votes
1 answer

Why is video not displaying when user joins room?

So, I have an adaptation of https://github.com/Dirvann/mediasoup-sfu-webrtc-video-rooms working in vanilla JS that I am attempting to adapt to use React. Instead of every user being a broadcaster, in my version, only the room creator is the…
harry young
  • 600
  • 1
  • 8
  • 24