WebRTC samples Screensharing

Request for a screensharing sctream and display the video stream from getUserMedia() in a video element.

You might be asked to install an extension to your browser.

The MediaStream object stream passed to the getUserMedia() callback is in global scope, so you can inspect it from the console.

View source on GitHub