This is an example app which implements the extension-side of getscreenmedia.
The browser useѕ chrome.runtime.sendMessage to talk to the backend script which calls chooseDesktopMedia and returns the sourceId of the chosen window. This sourceId has to be passed back to getUserMedia.
See also the tutorial for using inline installation.
- Download this code
- Replace
simplewebrtc.com
with your domain inmanifest.json
- If necessary change name and description
- Create a zip file
- Publish in the Chrome Web Store
Running (for testing without packing):
google-chrome --load-and-launch-app=/path/to/this/directory