Webvtt: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "= WEBVTT = == Overview == '''WEBVTT: Web Video Text Tracks''' is a concerted effort to bring subtitles that run natively on the browser to the web. WEBVTT functions by attachi...")
 
(move to WebVTT.)
 
Line 1: Line 1:
= WEBVTT =
Please see [[WebVTT]] instead.
== Overview ==
'''WEBVTT: Web Video Text Tracks''' is a concerted effort to bring subtitles that run natively on the browser to the web. WEBVTT functions by attaching an external WEBVTT file to the <video> element via the <track> element like so:
<pre>
&lt;video src="video.webm"&gt;
  &lt;track src="sample.webvtt"&gt;
&lt;/video&gt;
</pre>
 
Where sample.vtt is an external WEBVTT file marked up like so:
<pre>
WEBVTT
 
00:01.000 --> 00:03.000
Hey!
 
00:03.000 --> 00:05.000
This is a sample!
</pre>
If you feel like some self-punishment you can check out more about how it works by reading the [http://dev.w3.org/html5/webvtt/ WEBVTT spec] as well as the [http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#the-track-element HTML5 Track Element spec].
 
== Status ==
Currently you can view basic subtitles in Mozilla's Nightly builds. The basic WEBVTT tags such as &lt;b&gt;, &lt;u&gt;, and &lt;i&gt; are working.
 
== Get Involved ==
There are many ways you can help out Mozilla's implementation of WEBVTT. You can help by:
 
* Working on the standalone [https://github.com/mozilla/webvtt libwebvtt parser].
* Working on the [https://bugzilla.mozilla.org/show_bug.cgi?id=webvtt implementation of the browser spec and integration of the libwebvtt parser into Gecko].
<br/>
Jump on #media on irc.mozilla.org to co-ordinate with contributors. Look for :rillian, :reyre, :caitp, or :msaad.

Latest revision as of 18:50, 13 June 2013

Please see WebVTT instead.