Skip to content

Instantly share code, notes, and snippets.

Sam Kortchmar skortchmark9

Block or report user

Report or block skortchmark9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View screencap.js
async function screenCap(duration) {
function _startScreenCapture() {
if (navigator.getDisplayMedia) {
return navigator.getDisplayMedia({video: true});
} else {
return navigator.mediaDevices.getUserMedia({video: {mediaSource: 'screen'}});
}
}
const stream = await _startScreenCapture();
You can’t perform that action at this time.