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

Why can WebRTC not reconnect after disconnecting?

I am building a web application using React where users can enter a group call. I have a NodeJS server that runs Socket.IO to manage the client events, and the users are connected through a peer-to-peer connection using simple-peers…
MyNameIsGuzse
  • 273
  • 1
  • 5
  • 23
3
votes
2 answers

Send and receive objects through WebRTC data channel

In my project, I am using WebRTC to connect between 2 client using the aiortc package. I am using this example code and it works, but it seems I can't send non-string data in the data channel. This is what I send in the data channel (modified the…
SagiZiv
  • 932
  • 1
  • 16
  • 38
3
votes
0 answers

WebRTC mixing two audio streams with AudioContext

I'm using mediasoup and webrtc to create media streams. async consume(transport) { const { rtpCapabilities } = this.device; const data = await this.socket.request('consume', { rtpCapabilities }); const { …
3
votes
0 answers

Capture WebRTC video stream in Python

There is a WebRTC video stream coming from a server written in Go. I only have a URI from the stream to capture it, i.e. something like: http://192.168.1.104:8080/stream/demo1/channel/0/webrtc?uuid=demo1&channel=0 As I have looked into this tutorial…
mohamad danesh
  • 326
  • 1
  • 6
  • 21
3
votes
1 answer

How to setup STUN server in a video chat app built using simple peer?

I was recently working on a project which requires video chatting. I used simple peer to setup a video call and use socket.io for signalling purposes. I then deployed my application. I realised when two peers on the same network join the call, the…
3
votes
1 answer

Is it possible to send the WebRTC VideoStreamTrack from Unity to an RTCpeerConnection in the browser

I am trying to send the camera stream from unity to an RTCPeerConnection in the browser. The signaling between the two peers is done correctly, although when I send the MediaStreamTrack it does not work in the browser. Does anybody have an idea?…
Sehtaya
  • 31
  • 1
3
votes
0 answers

WebRTC is not supported in Chrome and Edge

Hi I've implemented a video call using WebRTC / Agora.io. It was working well until last week I get this message. It doesn't support now in Chrome and Edge. But is still working on Mozilla Firefox. Anyone also encounter this issue? There's no error…
3
votes
1 answer

Why is my `flutter_webrtc` peer connection always failing?

I'm stuck in establishing a WebRTC connection. I've successfully established WebRTC connections on several web applications using this signaling flow but I'm stuck in flutter. I'm using the flutter_webrtc package and here's my signaling flow - //…
Piyush
  • 693
  • 1
  • 7
  • 12
3
votes
1 answer

WebRTC running from WKWebView AVAudioSession development roadblock

Over the past few years I have steadily developed a complete WebRTC based browser Phone using the SIP protocol. The main SIP toolbox is SIPJS (https://sipjs.com/), and it provides all the tools one needs to make and receive calls to a SIP based PBX…
Conrad
  • 397
  • 1
  • 2
  • 12
3
votes
1 answer

h264 via WebRTC latency issue

I am trying to send a video stream encoded with h264 (hardware accelerated with nvidia encoder) via WebRTC for low latency display on a browser. More precisely, I have a thread that encodes an opengl framebuffer at a fixed frame rate, the resulting…
Lucas
  • 171
  • 1
  • 11
3
votes
1 answer

how can I set a HD screen recording using getDisplayMedia api?

I have created a screen recorder application using getDisplayMedia() API but the output video quality is not good, is there any way to configure the output video quality to get HD resolution video? I got a similar kind of question -> …
3
votes
0 answers

WebRTC: ontrack() not called on Safari with go-based peer

I am trying to stream video through WebRTC from my golang backend (using this WebRTC implementation) to a client browser. My implementation works on Chrome but does not on Safari because the RTCPeerConnection.ontrack() callback is never fired,…
Arthur Chaloin
  • 610
  • 1
  • 5
  • 12
3
votes
0 answers

Bitcode recompilation of WebRTC targeting tvOS

I am trying to recompile the bitcode of my tvOS app, including the bundled WebRTC framework, for the purpose of being able to successfully submit the app to the App Store. This same process with the iOS app succeeds. Upon pushing the tvOS app to the…
senojsitruc
  • 370
  • 2
  • 11
3
votes
1 answer

Failed to set remote offer sdp: Called in wrong state: have-local-offer

Pre-data: IF you don't know how to help me, please upvote so that it reaches others and I am helped :D. This specific error has not yet being asked on stack overflow. Failed to set remote offer sdp: Called in wrong state: have-local-offer Here is…
Xavi Font
  • 296
  • 4
  • 19
3
votes
0 answers

Transferring a Readable Stream from one browser tab to another in Chrome

I have looked into a few approaches to transfer a readable stream from one tab in Chrome to another: Broadcast channel -- doesn't support transferrable objects in postMessage Sender window postMessages to a Shared Worker connected to the sender and…