Skip to content

Instantly share code, notes, and snippets.

@hemanth
Last active December 12, 2015 08:48
Show Gist options
  • Save hemanth/4746382 to your computer and use it in GitHub Desktop.
Save hemanth/4746382 to your computer and use it in GitHub Desktop.
video capture the page, with getUserMedia()
// chrome://flags and Enable screen capture support in getUserMedia()
navigator.webkitGetUserMedia({
video: {
mandatory: {
chromeMediaSource: 'screen'
}
}
}, function (e) {
console.log(e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment