ICTASolutions / videojs-described-video

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

Support specifying the original source in the HTML #1

Open OwenEdwards opened 9 years ago

OwenEdwards commented 9 years ago

Currently, both the original and described video sources are specified in the JavaScript. In some cases, the original source(s) will be specified in the HTML:

<video poster="/img/poster.jpg" class="video-js vjs-default-skin">
    <source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
    <source src="http://vjs.zencdn.net/v/oceans.webm" type="video/webm">
    <track kind="captions" src="/vtt/captions.vtt" srclang="en" label="English">
</video>

An enhancement would allow only the described video source(s) to be specified in JavaScript (or potentially even in a data-setup attribute in the video element); when swapping out to the described video, the plugin would need to store the original source(s), so that the plugin can switch back to them.