Skip to content

Instantly share code, notes, and snippets.

@cgiffard
Created March 19, 2011 00:36
Show Gist options
  • Save cgiffard/877085 to your computer and use it in GitHub Desktop.
Save cgiffard/877085 to your computer and use it in GitHub Desktop.
Syntax idea for MediaTrack elements where multiple resource formats are required
<video controls autobuffer id="videoTest" width="1024" height="464">
<source src="video/arduino.m4v" type="video/mp4" />
<source src="video/arduino.webm" type="video/webm" />
<source src="video/arduino.ogv" type="video/ogg" />
<track kind="captions" src="video/arduino-en.srt" type="text/srt" srclang="en" label="English Subtitles" default />
<track kind="captions" src="video/arduino-de.srt" type="text/srt" srclang="de" label="German Subtitles" />
<track kind="captions" src="video/arduino-ja.srt" type="text/srt" srclang="ja" label="Japanese Subtitles" />
<track kind="commentary" srclang="en" label="Director's Commentary">
<source src="audio/commentary.ogg" type="audio/ogg" />
<source src="audio/commentary.mp3" type="audio/mp3" />
<source src="audio/commentary.wav" type="audio/wav" />
</track>
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment