Forum Discussion
JavaScript to prevent user to force learners to watch entire video
Just here to make a comment on accessibility and video for anybody considering using this and other things you need to consider.
When preventing users from changing the speed of playback, you are affecting accessibility. Users may need to slow video down for comprehension (especially where the language is not the users first language). Users may also want to speed it up, for example screen reader users who are used to consuming audio information at much quicker speeds.
Finally, make sure you have a text transcript available for users who cannot use the video. You can't force people to read the transcript, like you can't force people to watch a video, but opening a transcript should trigger the same event that the end of the video does!
As ChrisDorna said, it's the (clockwork orange) script you should try and avoid, but there are going to be valid use cases out there, just keep accessibility at the forefront.