protocol


Nov. 2, 2023

WebRTC

With WebRTC you can stream audio, video (or both) and arbritary data between browsers performing peer-to-peer communication. This is really powerful. In this article I will explain how WebRTC acquiring audio or video communicating audio and video communicating arbritary data Javascript API MediaStream Represents a stream of audio and/or video. It allows access to camera and microphone from host device. To get a MediaStream you can call navigator.getUserMedia var constraints = { video: true }; function onSuccess(stream) { var video = document.