Here's how to play a YouTube video without being spoiled, especially during the duration of the video. Indeed, it often happens when you watch a VOD of an esport event, quickly guess the final score of the match.
It's an improvement of a tutorial realized by TutorialZine (Danny Markov) to adapt it to my needs. I made a small interface and added a feature of forward and rewind for my other repository. I hope he does not blame me! :)
Icons comes from icon8.
- Video starts at the time you want
- Hide current time and video duration
- Hide progress bar
- Play and pause buttons
- Sound options
- Playback speed options
- Video quality button (it seems like it's not working now)
- Rewind and Forward buttons (5 seconds, 10 seconds and 30 seconds)
Check online demo : https://codepen.io/stevenpersia/full/XPzQPB