Skip to content

Instantly share code, notes, and snippets.

@sh78
Last active April 18, 2018 02:28
Show Gist options
  • Save sh78/93fb5dc5297449418d1f to your computer and use it in GitHub Desktop.
Save sh78/93fb5dc5297449418d1f to your computer and use it in GitHub Desktop.
<video controls preload="metadata" autoplay loop muted poster="poster_image.png">
<source src="video_file.mp4" type="video/mp4">
<source src="video_file.ogg" type="video/ogg">
<!--
Accessibility: Include valid WEBVTT caption file(s)
https://developer.mozilla.org/en-US/Apps/Build/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video
https://quuz.org/webvtt/
-->
<track label="English" kind="subtitles" srclang="en" src="subtitles-en.vtt" default>
<track label="Director's Commentary In German" kind="captions" srclang="de" src="commentary-de.vtt">
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment