ICTASolutions / videojs-described-video

Described Video plugin for videojs
Other
2 stars 0 forks source link

Retain playback position of video when switching #2

Open OwenEdwards opened 9 years ago

OwenEdwards commented 9 years ago

Currently the plugin remembers whether the video was playing before it switches to the alternate video, but it always starts at the beginning. The plugin could store the current playback position, and seek to there after the switch.

Note that this may be confusing if the described video has a different duration than the original one (for example, http://www.youtube.com/watch?v=OOgrSvnmhrY and http://www.youtube.com/watch?v=949D1IhKKYs), where a blind 'viewer' might get confused as to why they skip back to an earlier point in the video when switching to the described version.

OwenEdwards commented 9 years ago

The ability to retain the playback position should be optional, and default to 'start from beginning', or otherwise be made clear so that the web page developer clearly understands when to set it, and when not to. In theory, the plugin could compare the length of each video, and not retain the playback position if the duration is different, but this may be very difficult to implement!