Skip to content

Latest commit

 

History

History

chrome-extension-sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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.

How to build your own extension

  1. Download this code
  2. Replace simplewebrtc.com with your domain in manifest.json
  3. If necessary change name and description
  4. Create a zip file
  5. Publish in the Chrome Web Store

Running (for testing without packing): google-chrome --load-and-launch-app=/path/to/this/directory