Find file History

Chrome desktopCapture extension

This chrome extension simply captures content of your screen. It returns source-id to callee; and that source-id can be used as chromeMediaSourceId in WebRTC applications to capture screen's MediaStream.

Extension Name Source Code Google App Store
WebRTC Screen Capturing github/desktopCapture Install Chrome Extension

How to use?

  1. Download ZIP or TAR
  2. Windows users can use WinZip/WinRAR/7Zip however MacOSX/Linux users can use tar -zxvf desktopCapture.tar.gz to extract the archive
  3. Add your own domain here at line #17
  4. LocalHost users can test directly by adding unpacked extension.. via chrome://extensions/
  5. Otherwise you can make ZIP of the entire directory and upload at Google dashboard

Here is how to modify allowed-domains in manifest.json file:

    "content_scripts": [ {
       "js": [ "content-script.js" ],
       "all_frames": true,
       "run_at": "document_end",
       "matches": ["*"]

Learn more about how to publish a chrome extension in Google App Store:

For more information

For additional information, click this link.

Other Extensions

Extension Name Source Code Google App Store
WebRTC Desktop Sharing github/desktopCapture-p2p Install Chrome Extension
Tab Capturing in Chrome gitjub/tabCapture Install Chrome Extension
WebRTC File Sharing Chrome Extension github/file-sharing Install Chrome Extension

List of applications that are using same extension:

  1. getScreenId.js - a tinny javascript library that be used in any domain, application or WebRTC wrapper library.
  2. RTCMultiConnection.js - a WebRTC wrapper library providing approximately all possible WebRTC p2p-mesh-based features.
  3. Screen.js - a screen capturing library along with multi-user p2p screen streaming.
  4. Pluginfree Screen Sharing - a standalone application, providing multi-user p2p screen streaming in HD format.


It is recommended to use getScreenId.js to capture screen. In that case, you don't need to publish this chrome extension yourself in Google App Store.

<script src=""></script>
<video controls autoplay></video>
getScreenId(function (error, sourceId, screen_constraints) {
    navigator.getUserMedia = navigator.mozGetUserMedia || navigator.webkitGetUserMedia;
    navigator.getUserMedia(screen_constraints, function (stream) {
        document.querySelector('video').src = URL.createObjectURL(stream);
    }, function (error) {


Chrome-Extensions are released under MIT licence . Copyright (c) Muaz Khan.