Skip to content

Instantly share code, notes, and snippets.

@wapiflapi
Created September 22, 2019 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wapiflapi/d1f2d0cdfc438d769498b294a79eb090 to your computer and use it in GitHub Desktop.
Save wapiflapi/d1f2d0cdfc438d769498b294a79eb090 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head><title>Self Share Screen</title></head>
<body><video id="video" autoplay></video></body>
<script>
navigator.mediaDevices.getDisplayMedia({
video: { cursor: "never" },
audio: false
}).then(function (stream) {
document.getElementById("video").srcObject = stream;
});
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment