WebRTC on local network? [closed]

At least one machine needs to be a server, in the sense that it needs to have a port open that it listens on. This is a fact of life with all connections; when one machine opens a connection, there needs to be another machine on the other end that responds. Without this, no connections … Read more

CoTURN: How to use TURN REST API?

Few things to be clarified here are: GET /?service=turn&username=mbzrxpgjys which returns a JSON, is just a suggested uri for retrieving time-limited TURN credentials from the server, you do not have to follow that, your uri can be just /?giveMeCredentials. In fact, I use my socket connection to retrieve this data, not direct http call with … Read more

WebRTC can’t get a video feed from a USB input device (readyState goes to ended)

The specs on Media Capture Streams state that during the life-cycle of a MediaStreamTrack the live state may be replaced by zero-information-content if the MST has either been “muted” or “disabled”.This will result in rendering black frames. In other words media can only flow from the source if the MST is both, unmuted and enabled. … Read more

navigator.mediaDevices is undefined

APIs with functions like getUserMedia, getDisplayMedia and enumerateDevices require a secure context, access to these from http: origins has been removed in Chrome back in 2019 For development, the easiest solution may be to create a self-signed certificate. –UPDATE– For development the easiest solution is to run from localhost, as that’s considered secure – see … Read more

Is it possible to check if the user has a camera and microphone and if the permissions have been granted with Javascript?

Live Demo: https://www.webrtc-experiment.com/DetectRTC/ If user didn’t allow webcam and/or microphone, then media-devices will be having “NULL” value for the “label” attribute. Above page will show this message: “Please invoke getUserMedia once.” PS. You can type “DetectRTC.MediaDevices” in the Chrome Console developers tool. Note: It works only in Chrome. Firefox isn’t supporting similar API yet. (Updated: … Read more

Which version of Microsoft Internet Explorer support WebRTC?

For now IE doesn’t support WebRTC. Moreover, it seems like MS don’t plan to implement WebRTC. They announced a new technology called CU-RTC-Web – kinda Microsoft analog of WebRTC. CU-RTC-WEB: http://html5labs.interoperabilitybridges.com/cu-rtc-web/cu-rtc-web.htm Expected that this CU-RTC-WEB will be compatible with todays WebRTC. UPDATED Some people also report that IE supports WebRTC when using http://www.google.com/chromeframe UPDATED Microsoft … Read more

WebRTC on isolated LAN without ice/stun/turn server

Omit the iceServers list: const pc = new RTCPeerConnection(); Either omit the iceServers list from the RTCPeerConnection constructor, or make it the empty list []. From RTCPeerConnection docs: iceServers | optional An array of RTCIceServer objects, each describing one server which may be used by the ICE agent; these are typically STUN and/or TURN servers. … Read more