Updated on Tuesday, May 25, 2021 Improve article, Content available under the CC-BY-SA-4.0 license. The code assumes video is an HTMLVideoElement media element using the