EMBED A MOVIE PLAYER WITH VIDEOJS
If you are not satisfied with the built-in player controls offered by your HTML5 web browser and you have no interest in creating your own controls and JavaScript code, you may be interested in a program called VideoJS. Produced as an add-on JavaScript program, it not only provides a way for you to create custom video playback controls using nothing but CSS, but also provides a built-in fallback to non-HTML5 browsers to launch a Flash-based video player.
VideoJS requires you to add additional code around your existing <video> tag group. This includes wrapping it in a master <div class='video-js-box'></div> block and requires you to add some additional class names to the <video> tag itself.
If <video> is not supported, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access