Skip to content

Instantly share code, notes, and snippets.

Created November 4, 2013 04:52
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/7298215 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="https://raw.github.com/cgiffard/Captionator/master/js/captionator-min.js"></script>
<script>
window.onload=function(){
captionator.captionify();
}
</script>
</head>
<body>
<video controls id="videoDemo" width="100%">
<source src="http://happyworm.com/video/m4v/arduino.m4v" type="video/mp4" />
<source src="http://happyworm.com/video/webm/arduino.webm" type="video/webm" />
<source src="http://happyworm.com/video/ogv/arduino.ogv" type="video/ogg" />
<!-- VTT file must be on your local server -->
<track kind="captions" src="arduino-en.vtt" type="text/vtt" srclang="en" label="English Subtitles" default />
<div class="message">
<p><strong>Sorry, you'll need an HTML5 Video capable browser to view this example.</strong></p>
</div>
</video>
<body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment