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
37cf72ea
Commit
37cf72ea
authored
Jan 22, 2020
by
Slava Istomin
Browse files
index.html: fixup top-level await usage.
parent
0528f21d
Pipeline
#12514
passed with stages
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
37cf72ea
...
@@ -9,10 +9,12 @@
...
@@ -9,10 +9,12 @@
<video
src=
""
></video>
<video
src=
""
></video>
<script>
<script>
let
video
=
document
.
querySelector
(
'
video
'
)
;(
async
_
=>
{
let
mediaStream
=
await
navigator
.
mediaDevices
.
getDisplayMedia
()
let
video
=
document
.
querySelector
(
'
video
'
)
video
.
srcObject
=
mediaStream
let
mediaStream
=
await
navigator
.
mediaDevices
.
getDisplayMedia
()
video
.
play
()
video
.
srcObject
=
mediaStream
video
.
play
()
})()
</script>
</script>
</body>
</body>
...
...
Write
Preview
Supports
Markdown
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