Created
October 28, 2021 15:53
-
-
Save GaetanoPiazzolla/8f4c4046798d4d3b2f496db98a4eb740 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let btn = document.querySelector(".record-btn") | |
btn.addEventListener("click", async function () { | |
let stream = await navigator.mediaDevices.getDisplayMedia({ | |
video: true | |
}) | |
//... | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment