Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save watr/b550ad8b7636d1353da303650eb63e23 to your computer and use it in GitHub Desktop.
Save watr/b550ad8b7636d1353da303650eb63e23 to your computer and use it in GitHub Desktop.
Play video in web browser with captions(.vtt).
<html>
<body>
<video controls autoplay name="media" style="max-width:100%; max-height:100%">
<source src="Branching Paths Playism 1080p.mp4" type="video/mp4">
<track label="Japanese" kind="captions" src="Branching paths_JP.vtt" srclang="ja" default></track>
</video>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment