Wednesday, May 5th, 2010>p>It is always fun to get a new tweet from Mr. WHATWG and these came through recently:
HTML5: Captions – Stage 1: the <track> element.
HTML5: Captions – Stage 2: the IDL additions.
HTML5: Captions – Stage 3: defining what a timed track and a timed track cue are.
John Dyer noticed the new <track> element too, and noted how useful they would be for his multi-lingual HTML5 video player for a school’s online education program.
Here is what the spec has to say about the new element:
The track element allows authors to specify explicit external timed tracks for media elements. It does not represent anything on its own.
The kind attribute is an enumerated attribute. The following table lists the keywords defined for this attribute. The states given in the first cell of the rows with keywords give the states to which those keywords map.
- subtitles: Translation of the dialogue, suitable for when the sound is available but not understood (e.g. because the user does not understand the language of the media resource’s soundtrack).
- captions: Transcription of the dialogue, suitable for when the soundtrack is unavailable (e.g. because it is muted or because the user is deaf).
- descriptions: Textual descriptions of the video component of the media resource, intended for audio synthesis when the visual component is unavailable (e.g. because the user is interacting with the application without a screen while driving, or because the user is blind).
- chapters: Chapter titles, intended to be used for navigating the media resource.
- metadata: Tracks intended for use from script.
Posted by Dion Almaer at 5:58 am