Commit 0528f21d authored by Slava Istomin's avatar Slava Istomin
Browse files

a page with video element displaying captured display video.

parent ff851d5f
Pipeline #12513 passed with stages
in 13 seconds
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<video src=""></video>
<script>
let video = document.querySelector('video')
let mediaStream = await navigator.mediaDevices.getDisplayMedia()
video.srcObject = mediaStream
video.play()
</script>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment