Last active
December 21, 2020 05:55
-
-
Save willdowglas/7d5e785d6496d22aaf6cba4e0dcbea75 to your computer and use it in GitHub Desktop.
set video to fullscreen and playback rate to 2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const el_id = "video-player_html5_api" | |
| let element = document.getElementById(el_id) | |
| element.addEventListener("play", my_configs) | |
| element.addEventListener("ended", document.exitFullscreen()) | |
| function my_configs() { | |
| element.requestFullscreen() | |
| element.playbackRate = 2 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment