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

Cant send data over RTC data channel using simple peer

I recently tried implementing p2p file transfer using Webrtc by splitting large files into array buffers and then sending them over the data channel. The code was working a month ago, but now it is suddenly throwing me this error. Uncaught RTCError:…
Dev
  • 103
  • 1
  • 7
3
votes
1 answer

Is there any alternative approach to implement WebRTC SFU, to have only 1 upload stream?

I have a server which is able to relay the WebRTC media data from A to B. For the video conferencing, if we go with P2P approach then a mesh network is created. Whenever P2P doesn't work, we can have this relay server. The main problem is that in…
iammilind
  • 68,093
  • 33
  • 169
  • 336
3
votes
0 answers

WebRTC doesn't show the video peerConnection remote video

I have tried to connect my video (No webcam) to sync with the other video remotely. But I don't know where I'm wrong. I did it taking into account that they were going to connect to the same room. One performs the stream (LocalVideo) and the other…
3
votes
3 answers

Issue with WebRTC/getUserMedia in iOS 14 Safari and phone sleep/unlock

I seem to have noticed a regression with getUserMedia in iOS 14 Safari. Here are steps to reproduce: Go to https://webrtc.github.io/samples/src/content/getusermedia/gum/ on iOS 14 Safari Click "Open camera" and accept camera permissions; you should…
zzxx53
  • 413
  • 3
  • 12
3
votes
1 answer

STUN binding request failing though IP and port are reachabe

I am testing a WebRTC application that works perfectly well on hundreds of pairs of peers but fails on one specific peer (Matt below). Consider: Alice : Peer on which WebRTC app works (laptop on a home network behind a NAT) Bob : Peer on which…
Vikesh
  • 2,018
  • 6
  • 23
  • 33
3
votes
0 answers

DOMException: Could not start video source - chrome 85 update

I had a working webrtc application which stops to work, today. Since there is no change on the code, and with new update of chrome, I thought this will experience by whole webrtc community, and it's worthy to ask here for a sulotion. That's a…
Ali Bahrami
  • 910
  • 9
  • 21
3
votes
0 answers

How can I change the audio device for a WebRTC publishing stream while running an AudioContext script processor?

For the purposes of this example, I am using the basic publish HTML/js code from an Ant Media Server application (see https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/index.html). (Note - I'm actually using the enterprise edition…
Ben Holness
  • 2,457
  • 3
  • 28
  • 49
3
votes
1 answer

Is it possible to mute the whole webpage with javascript?

I have a webpage which has a continuous(ish) livestream playing on it, but I want users only to be able to see and hear it at specific, exact times. I don't want them to have to keep disconnecting and reconnecting as this takes an unpredictable…
Ben Holness
  • 2,457
  • 3
  • 28
  • 49
3
votes
0 answers

WebRTC Video Streaming fails through Airtel Broadband, works fine with 4G Hotspot

I am trying out the WebRTC examples of MuazKhan. It is working perfectly fine when the broadcaster is on AWS/Azure(or any other network) and the receiver is through my phones 4G network. But as soon as I switch to my broadband from 4G, the video…
3
votes
1 answer

GetUserMedia preview video stuck on the first frame

I am having an issue with the preview video that I am creating from getUserMedia. The video would connect, but only show the first frame or two and alternate between them rapidly. I can still get the picture of what the camera is facing at when…
Kaloyan Dimitrov
  • 808
  • 2
  • 8
  • 14
3
votes
2 answers

How to add video call to nativescript app

hope this meets you well I'm working on a nativescript project and i would like to add video call functionality to the app, i have searched online, i found https://market.nativescript.org/plugins/nativescript-webrtc-plugin, but i really don't…
kunlee
  • 591
  • 1
  • 4
  • 15
3
votes
2 answers

webRTC meaning of remote video track muted / enabled

Having implemented a couple years back a mechanism for signaling via a data channel message that a remote user muted their local video (e.g., set enable to false) and then taking the appropriate action on the remote side (e.g., showing the remote…
SBG
  • 357
  • 4
  • 17
3
votes
1 answer

Issue with speaker - WebRTC & iOS

I am trying to make a video chat app with webRTC using google's webRTC pod. The issue I am facing is while trying to use the loudspeaker for sound output. If accessing loudspeaker is successful, sound starts to come from all the speakers, including…
Orion Cygnus
  • 168
  • 1
  • 8
3
votes
1 answer

Use high resolution local video but limit video size in WebRTC connection

I'm developing a website for a one on one webrtc video call on mobile browsers. I also support the capturing of photos on the local stream. For the photo capture I use ImageCapture api where available, and drawing to canvas elsewhere. The problem is…
Izak
  • 307
  • 5
  • 12
3
votes
0 answers

RTCPeerConnection addstream event not fired in firefox not focused or minimized

Does anyone know why the addstream event doesn't work when firefox is out of focus or minimized? im using jssip 3.2 library. In chrome this does not happen and the event callback is executed with chrome being minimized or without the need to have…