This repo is an exploration of screen capture in browsers, including using screen capture streams in WebRTC sessions with Twilio Video.
In the /extension
directory is a minimal implementation of a Chrome extension that will give access to streams from the chrome.desktopCapture
API.
In the /chrome
directory is an HTML page that takes advantage of the extension and captures the desktop to show within a <video>
element on the page.
Note
You will need to load your own version of the Chrome extension into your browser and replace YOUR_EXTENSION_ID_HERE
with your own extension ID.
You will also need to serve the file from a local web server so that you can visit it on localhost.