Accessibility/HTML5 captions: Difference between revisions

m
(removed ==== line)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
/*
* This work is licensed under the Creative Commons Attribution-Share Alike 3.0
* Unported License. To view a copy of this license, visit
* http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to
* Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
*
* The Initial Developer of the Original Code is Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2009
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*  Silvia Pfeiffer <silvia@siliva-pfeiffer.de>
*
*/


 
== Specification of the itext element (First Version) ==
Specification of the itext element




Line 66: Line 51:




The itext element allows authors to include a link to an external file that contains informative text about the video. The external resource is expected to consist of a sequence of time intervals with associated text and potentially layout, styling, and animation information for the text. The text is displayed as the parent audio or video element goes through its time interval, i.e. the parent's currentTime reaches has reached the start time of the interval but has not yet reached the end time of the interval (a semi-open interval: [start,end) ).
The itext element allows authors to include a link to an external file that contains informative text about the video. The external resource is expected to consist of a sequence of time intervals with associated text and potentially layout, styling, and animation information for the text. The text is displayed as the parent audio or video element goes through its time interval, i.e. the parent's currentTime has reached the start time of the interval but has not yet reached the end time of the interval (a semi-open interval: [start,end) ).


The category attribute describes what function the informative text represents and can be one of the following:
The category attribute describes what function the informative text represents and can be one of the following:
Line 84: Line 69:
The src  attribute gives the address of the external itext resource to use. The value of the attribute must be a valid URL identifying a text resource of the type given by the type attribute, if the attribute is present, or of the type "text/srt", if the attribute is absent.
The src  attribute gives the address of the external itext resource to use. The value of the attribute must be a valid URL identifying a text resource of the type given by the type attribute, if the attribute is present, or of the type "text/srt", if the attribute is absent.


NOTE: text/srt will need to be registered as a mime type
NOTE: text/srt will need to be registered as a mime type (as well as a format standardisation)


The type attribute gives the format of the data, RFC 2046. If the attribute is present, its value must be a valid MIME type, optionally with parameters. The charset parameter must not be specified. (The default, which is used if the attribute is absent, is "text/srt".) [RFC2046]
The type attribute gives the format of the data, RFC 2046. If the attribute is present, its value must be a valid MIME type, optionally with parameters. The charset parameter must not be specified. (The default, which is used if the attribute is absent, is "text/srt".) [RFC2046]