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
40
votes
4 answers

How can I use an .a static library in swift?

I want to use my webrtc .a static library in swift. Can you help please? I read you can´t use static libraries in swift, is that true?
CarlosAndres
  • 585
  • 1
  • 5
  • 14
39
votes
9 answers

CoTURN: How to use TURN REST API?

I have build coturn and run it successfully. ip:192.168.1.111. Now the question I faced is to get the Turn credential through REST API. https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00 According to the passage the request…
LoveLxr
  • 391
  • 1
  • 3
  • 3
39
votes
3 answers

WebRTC on local network?

I've been reading about WebRTC and it looks very promising. I wanted to make a simple lan game that automatically connects people on the same network. Though I could find people asking about something similar, and answers telling them it was…
The Oddler
  • 6,314
  • 7
  • 51
  • 94
38
votes
4 answers

WebRTC remote video is shown as black

While developing a WebRTC video chat application I have encountered receiving remote the video stream. The video stream blob is received, but the video is just black. I have gone through these answers and tried almost everything I could to get it…
ajaybc
  • 4,049
  • 7
  • 44
  • 57
36
votes
6 answers

Creating a webRTC peer *without* a browser, with just a JavaScript interpreter

I want to create a WebRTC peer that's a simple listener/recorder with no "presentation" component (i.e., no HTML/CSS). If this is possible, (with the WebRTC JavaScript APIs), please tell me what standalone JavaScript engine I can use (I'm thinking…
auro
  • 1,079
  • 1
  • 10
  • 22
35
votes
2 answers

Implementing our own STUN/TURN server for WebRTC Application

I am working on a webrtc application and have to implement following TURN server. https://code.google.com/p/rfc5766-turn-server/ I am following this tutorial. http://www.dialogic.com/den/developer_forums/f/71/t/10238.aspx and it says to reference…
Sam Fast
  • 571
  • 2
  • 9
  • 16
34
votes
3 answers

How to select proper backfacing camera in Javascript?

I am using navigator.mediaDevices.getUserMedia to open MediaStream from camera device within a web browser. My app wants to do some realtime image processing in WebAssembly and for that, I need to provide a live stream of images directly from the…
DoDo
  • 2,248
  • 2
  • 22
  • 34
34
votes
3 answers

WebRTC - How many STUN/TURN servers do I need to specify?

I'm having trouble with NAT traversal and WebRTC. Videostreaming works with some people, but not with someone who's behind a student dorm router. I think this should be solved by using a TURN server. I've done that, it still isn't working, and now…
spacecoyote
  • 1,909
  • 3
  • 19
  • 24
33
votes
3 answers

How to listen for "Stop sharing" click in Chrome DesktopCapture API

I'm currently writing a chrome extension which uses Chrome's DesktopCapture API. I'm struggling to set a callback when someone clicks on "Stop sharing". I tried using the onended EventHandler of the MediaStream, but the MediaStream's ended property…
wpp
  • 7,093
  • 4
  • 33
  • 65
33
votes
4 answers

Is STUN server absolutely necessary for webrtc when I have a socket.io based signaling server?

My understanding about STUN server for webrtc is that when the clients are behind the NAT (in most cases, if not all), the STUN server will help the webrtc clients to identify their addresses and ports. And I also read some article saying that a…
user1663023
33
votes
3 answers

Can I use WebRTC to receive a standard RTP video stream?

I have two computers on the same network. One of them transmits a movie (H264) with RTP protocol. Is it possible to create a simple javascript app to receive this stream on the second computer and display in a video tag? So far my impression of…
Pal Szasz
  • 2,954
  • 3
  • 20
  • 18
32
votes
4 answers

navigator.mediaDevices.getUserMedia is not working and neither does webkitGetUserMedia

I've been using webkitGetUserMedia method (getUserMedia through adapter.js) to get the camera nad microhpone for webRTC on my web app. My server is not secure (no SSL certificate). It all worked fine until I started getting an error saying :…
Michael P
  • 2,017
  • 3
  • 25
  • 33
31
votes
4 answers

WebRTC error inside Chromium WebView: "CheckMediaAccessPermission: Not supported"

I'm trying to show WebRTC chat in WebView. According to this documentation, WebView v36 supports WebRTC. For my test I'm using a device with Chrome/39.0.0.0 and I have added permissions to the AndroidManifest.xml file:
31
votes
5 answers

Native Android WebRTC application development

I am trying to create an android application for video chat and messaging by using WebRTC Native APIs. I have been through several links and found out that most of the documentation for android is vague, specially if you dont know where to start…
Ahmed
  • 2,966
  • 7
  • 42
  • 69
31
votes
6 answers

Screen sharing with WebRTC?

We're exploring WebRTC but have seen conflicting information on what is possible and supported today. With WebRTC, is it possible to recreate a screen sharing service similar to join.me or WebEx where: You can share a portion of the screen You can…
Crashalot
  • 33,605
  • 61
  • 269
  • 439