Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Slava Istomin
check-display-media
Commits
0528f21d
Commit
0528f21d
authored
Jan 22, 2020
by
Slava Istomin
Browse files
a page with video element displaying captured display video.
parent
ff851d5f
Pipeline
#12513
passed with stages
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.html
0 → 100644
View file @
0528f21d
<!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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment