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
2 answers

How to determine if TURN server is being used (WebRTC)?

I want to gather stats on the number of users having to fallback to TURN servers. Thus is there a way to find if a RTCPeerConnection is using a TURN server instead of "directly" communicating with a remote peer? I've tried using pc.getStats() but…
user8380672
  • 520
  • 1
  • 9
  • 20
3
votes
0 answers

GoogleWebRtc too low bitrate

After video call starts quality is too low and frames dropping. Even though i set everything to max- limit like : self.peerConnection.setBweMinBitrateBps(300000, currentBitrateBps: 1000000, maxBitrateBps: 3000000) And in sdp i added b=AS: 5000000.…
3
votes
3 answers

simple-peer on.("signal") event repeats many times

I'm using simple-peer to create a small video calling app using NodeJS, SocketIO and Angular I'm trying to implement full-mesh here. I have a peer initialtor which will initiate the signal on loop. My code is as below. const peer = new SimplePeer({ …
rakcode
  • 2,256
  • 4
  • 19
  • 44
3
votes
1 answer

Stream WebRTC from an RTSP stream

Currently I have an RTSP stream coming from my IP camera, I have of course the IP and if I try to display it on vlc it all work good (rtsp://IP:PORT/channel). The next step is to show it on my web - be able to integrate it as a js video component,…
dorforer
  • 71
  • 1
  • 4
3
votes
0 answers

Stop transmitting audio when app is in background in android webRTC/AppRTC

I am working on webRTC on the android platform. I run the appRTC code(https://github.com/njovy/AppRTCDemo). Now I joined the call from the android mobile and one from the web(https://appr.tc/). it is working fine. Now Android mobile goes in…
Shashank Gupta
  • 165
  • 2
  • 16
3
votes
1 answer

can be use getUserMedia and getDisplayMedia simultaneously

i want to merge getUserMedia and getDisplayMedia stream. i am using MediaRecorder. when i switch from getUserMedia to getDisplayMedia then MediaRecorder Record video till I am not switching to getDisplayMedia.then getDisplayMedia produces its own…
Aquib
  • 31
  • 4
3
votes
0 answers

WebRTC Safari integration test: How to mock getUserMedia video?

I would like to implement an integration test mocking a WebCam video stream using the Safari browser. Following the WebRTC testing documentation Chrome provides the --use-file-for-fake-video-capture= flag to mock the video stream. I have…
DrDirk
  • 1,937
  • 3
  • 25
  • 36
3
votes
1 answer

iOS screen sharing (using ReplayKit) using WebRTC in swift

I have successfully implemented ReplayKit. SampleHandler.swift class SampleHandler: RPBroadcastSampleHandler { override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { } override func processSampleBuffer(_…
Daxesh Nagar
  • 1,405
  • 14
  • 22
3
votes
3 answers

Browser keeps on accessing the camera with red dot even after stopping the stream aafter establishing the peer connection using webRTC

let localStream; let peerConnection; navigator.mediaDevices.getUserMedia({ audio: true, video: true }).then(function(stream) { createPeerConnection(); localStream = stream; peerConnection.addStream(localStream); }); so when stopping…
Pradipta Dey
  • 133
  • 2
  • 11
3
votes
1 answer

How to ask STUN server to generate the ice candidates using aiortc?

I have a working WebRTC client, and I want to receive it's video via WebRTC using aiotrc (python). The other client is working fine as the recipient, we have tested it with a browser. Using python, I configure the server, I create an offer with a…
adamb
  • 793
  • 1
  • 11
  • 20
3
votes
1 answer

Cannot signal after peer is destroyed . Simple-peer

I'm a beginner in webrtc . I have used simple-peer to connect two peers on a video calling application . When a second peer is connected , his video is displayed but after a few seconds an error showing "cannot signal when peer is destroyed" is…
Padma govind
  • 31
  • 2
  • 4
3
votes
1 answer

WebRTC Android echo cancellation

I would like to implement voice and video calling in android. I used this example project as reference: Amazon Kinesis Video Streams Android WebRTC SDK Problem is that the microphone picks up the remote sounds which results in an extreme echoing…
prechtelm
  • 43
  • 1
  • 3
3
votes
0 answers

Random Crash in webrtc native library

I am getting this error randomly on some device when I request to close peerconnection on release build. I have tried to set pro-guard rule for this but still getting below error. Please help me on this . My Proguard rules: -keep class org.webrtc.**…
3
votes
1 answer

Can't limite bandwidth usage in RTCMulticonnection

I am using RTCMulticonnection in one of my projects. Where I want to limit video stream bandwidth to 500-600kbp. I gone through the documentation and set sdp constraints with bandwidth Handeller. and I reduced the width to 320p and height 180 using…
asimdev
  • 705
  • 1
  • 8
  • 22
3
votes
1 answer

Create playable videostream from bytes/frames Java/Android

I have org.webrtc.VideoFrame frames stream. The frames are coming one by one. Is there any lib or tool to convert frames to stream on a fly? I could successfully take convert that VideoFrames to array of bytes. (similar as this question that uses it…
Kyryl Zotov
  • 1,788
  • 5
  • 24
  • 44
1 2 3
99
100