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
22
votes
3 answers

navigator.mediaDevices.enumerateDevices() returns empty labels

Background The machine I am trying to implement this on contains multiple cameras, I want to select the camera in the code. (all machines have the same hardware) Issue I am trying to implement a custom function before requesting video access where I…
Hoshani
  • 746
  • 1
  • 10
  • 27
22
votes
3 answers

Does webKit in iOS 11 (Beta) support WebRTC?

I have a URL that is working fine with Safari on iOS11 (Beta) Audio/Video is working fine. But when I load this URL with WKWebView it gives me an error "Incompatible Browser" and when I check my browser version in WebKit it shows "WebKit based…
adarshk
  • 338
  • 1
  • 2
  • 10
22
votes
2 answers

How to keep WebRTC dataChannel open in phone browser inactive tab?

I am making a web application that uses WebRTC. It works just fine on desktop browsers. However on a small smartphone web browser, there are unwanted events: When switching tabs on the mobile web browser chrome for android and firefox for android,…
Walle Cyril
  • 3,087
  • 4
  • 23
  • 55
22
votes
3 answers

Handling / receiving live video webcam stream from WebRTC or any browser based capturing mechanism to the server using ASP.NET MVC

We need to capture a live video stream from WebRTC (or any other capturing mechanism from the client webcam, even if it is not supported on all browsers, but as a PoC). This live video needs to be handled by a server component (ASP.Net MVC / Web…
Saw
  • 6,199
  • 11
  • 53
  • 104
22
votes
2 answers

Synchronization of data with video using WebRTC

I'm using WebRTC to send video from a server to client browser (using the native WebRTC API and an MCU WebRTC server like Kurento). Before sending it to clients each frame of the video contained metadata (like subtitles or any other applicative…
MaMazav
  • 1,773
  • 3
  • 19
  • 33
22
votes
2 answers

WebRTC - disable all audio processing

I'm currently trying to get a clean as possible audio channel via webrtc. Via the getUserMedia mediaconstraints object, I've set the following options: constraints: { audio: { mandatory: { echoCancellation:…
wowpatrick
  • 5,082
  • 15
  • 55
  • 86
22
votes
1 answer

WebRTC - How to mute local audio output

I'm trying to mute only the local audio playback in WebRTC, more specifically after getUserMedia() and prior to any server connection being made. None of the options I've found work; this one from Muaz Khan fails: var audioTracks =…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
22
votes
5 answers

Installing a TURN Server on Ubuntu for WebRTC

How can I install a TURN server on my ubuntu 12.04? Can you share tutorial? I read this tutorial: Implementing our own STUN/TURN server for WebRTC Application. But what I don't understand is how I can I install my own TURN server on my ubuntu…
Dvlpr
  • 453
  • 3
  • 8
  • 20
22
votes
6 answers

Use an IP-camera with webRTC

I want to use an IP camera with webrtc. However webrtc seems to support only webcams. So I try to convert the IP camera's stream to a virtual webcam. I found software like IP Camera Adapter, but they don't work well (2-3 frames per second and delay…
Minz
  • 341
  • 1
  • 2
  • 6
22
votes
3 answers

WebRTC for realtime scaling

I'm looking for a cheapo solution to realtime scaling for many users in 1 channel. I'm using sockjs but scaling is pretty annoying when talking about really large numbers. I'm thinking about using webrtc to decrease cost with p2p. Instead of the…
Harry
  • 52,711
  • 71
  • 177
  • 261
22
votes
1 answer

why doesn't "onicecandidate" work?

I'm having trouble understanding webRTC with it's PeerConnection and 'onicecandidate' event. As far as I understand it you must initiate a peerconnection using a STUN (or TURN) server, because it will send you back your ICE candidate for…
Fab
  • 375
  • 1
  • 3
  • 11
22
votes
4 answers

How to choose input video device for webrtc?

I am studying webRTC application. My reference is this software apprtc https://code.google.com/p/webrtc/source/browse/trunk/samples/js/apprtc/ demo https://apprtc.appspot.com/ My computer has bult-in video device and apprtc uses this video device…
whitebear
  • 11,200
  • 24
  • 114
  • 237
21
votes
2 answers

Download large data stream (> 1Gb) using javascript

I was wondering if it was possible to stream data from javascript to the browser's downloads manager. Using webrtc, I stream data (from files > 1Gb) from a browser to the other. On the receiver side, I store into memory all this data (as arraybuffer…
Brian
  • 287
  • 1
  • 2
  • 8
21
votes
1 answer

How to addTrack in MediaStream in WebRTC

I'm using webrtc to communicate between to peers. I wan't to add new track to old generated stream, as I wan't to give functionality to users to switch their microphones during audio communications. The code I'm using is, Let "pc" be the…
Akshay Rathore
  • 819
  • 1
  • 9
  • 23
20
votes
6 answers

An empty identity is not valid when signing a binary for the product type 'Application' in xcode version 10.2

I have compile webrtc ios source code ,then I used the command: gn gen out/ios --args='target_os="ios" target_cpu="arm64"' --ide=xcode then I open the workspace with Xcode. but when I compile the code, Xcode gives me this error below. An empty…
zark
  • 211
  • 1
  • 2
  • 7