Skip to content

Commit

Permalink
Fix video not displaying.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mounir Lamouri committed Jul 15, 2024
1 parent 358f8cb commit 8faefc5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions screen-sharing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
<html>
<head>
</head>
<style>
video {
display:block;
width: 50%;
}
#errorMsg {
border: black;
}
</style>
<body>
<video></video>
<video autoplay playsinline muted></video>
<button data-display='default' disabled>Start (default)</button>
<button data-display='browser' disabled>Start (browser)</button>
<button data-display='window' disabled>Start (window)</button>
Expand Down Expand Up @@ -48,7 +57,6 @@
}
options.monitorTypeSurfaces = document.querySelector('#exclmonitor').checked ? 'exclude' : 'include';
options.cursor = document.querySelector('input[name=cursor]:checked').value;
console.log(options);
navigator.mediaDevices.getDisplayMedia(options)
.then(handleSuccess, handleError);
}
Expand Down

0 comments on commit 8faefc5

Please sign in to comment.