401
edits
(added description of how to interface with JavaScript API) |
(ups, taking over too much from the HTML5 API) |
||
| Line 103: | Line 103: | ||
* <cue> elements cannot appear inside <cue> elements; it is possible to introduce a parsing rule for <cue> that is similar to <dl>/<dd> where the opening of a new <cue> element implicitly closes the previous one. In this way, it is impossible to write a nested <cue> element - the parser always turns it into something non-nested. | * <cue> elements cannot appear inside <cue> elements; it is possible to introduce a parsing rule for <cue> that is similar to <dl>/<dd> where the opening of a new <cue> element implicitly closes the previous one. In this way, it is impossible to write a nested <cue> element - the parser always turns it into something non-nested. | ||
* it has the following additional attributes: | * it has the following additional attributes: | ||
** | ** start (float, optional): the start time of the cue (in relation to a media resource that is externally specified in a HTML media element); if missing, startTime=0 is assumed | ||
** | ** end (float, optional): the end time of the cue; if missing, it implicitly ends with the start of the next cue or at the end of the resource; thus, if time-overlapping cues are needed, specification of the end attribute is required | ||
** voice (optional): a string identifying the voice with which the cue is associated (as defined in [http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#timed-track-cue-voice-identifier the HTML5 specification] | ** voice (optional): a string identifying the voice with which the cue is associated (as defined in [http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#timed-track-cue-voice-identifier the HTML5 specification] | ||
** width/height: per cue width/height in % | ** width/height: per cue width/height in % | ||
edits