- From: Brendan Long <self@brendanlong.com>
- Date: Mon, 10 Feb 2014 15:51:24 -0600
- To: public-html@w3.org
- Message-ID: <1392069084.2647.21.camel@blong-desktop>
I think I was reading this too fast and missed this, which seems to apply already: > If text track list of cues' associated rules for updating the text > track rendering are not the same rules for updating the text track > rendering as appropriate for cue, then throw an InvalidStateError > exception and abort these steps. Sorry for the list-spam. On Mon, 2014-02-10 at 15:47 -0600, Brendan Long wrote: > One more thing: If we call TextTrack's addCue() method with a DataCue, > and the TextTrack's kind isn't "metadata", we're not supposed to add > it. Do or do we not remove the cue from any existing tracks? > > Here's a concrete example: > > > video = document.createElement("video") > > goodtrack = video.addTextTrack("metadata") > > badtrack = video.addTextTrack("subtitles") > > cue = new DataCue(1, 2, null) > > goodtrack.addCue(cue) > > badtrack.addCue(cue) > > Now is goodtrack.cues.length 0 or 1? > > It seems to me that what we should do is check if the track's kind is > "metadata" before following any of the other addCue() steps, which > would mean in my example above, the answer would be 1. --=-+OLbdl2Rd5voszhcGatc Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6"> </HEAD> <BODY> I think I was reading this too fast and missed this, which seems to apply already:<BR> <BLOCKQUOTE TYPE=CITE> If <A HREF="http://www.w3.org/html/wg/drafts/html/CR/embedded-content-0.html#text-track-list-of-cues">text track list of cues</A>' associated <A HREF="http://www.w3.org/html/wg/drafts/html/CR/embedded-content-0.html#rules-for-updating-the-text-track-rendering">rules for updating the text track rendering</A> are not the same <A HREF="http://www.w3.org/html/wg/drafts/html/CR/embedded-content-0.html#rules-for-updating-the-text-track-rendering">rules for updating the text track rendering</A> as appropriate for <TT>cue</TT>, then throw an <TT><A HREF="http://www.w3.org/html/wg/drafts/html/CR/infrastructure.html#invalidstateerror">InvalidStateError</A></TT> exception and abort these steps.<BR> </BLOCKQUOTE> Sorry for the list-spam.<BR> <BR> On Mon, 2014-02-10 at 15:47 -0600, Brendan Long wrote:<BR> <BLOCKQUOTE TYPE=CITE> One more thing: If we call TextTrack's addCue() method with a DataCue, and the TextTrack's kind isn't "metadata", we're not supposed to add it. Do or do we not remove the cue from any existing tracks?<BR> <BR> Here's a concrete example:<BR> <BLOCKQUOTE TYPE=CITE> video = document.createElement("video")<BR> goodtrack = video.addTextTrack("metadata")<BR> badtrack = video.addTextTrack("subtitles")<BR> cue = new DataCue(1, 2, null)<BR> goodtrack.addCue(cue)<BR> badtrack.addCue(cue)<BR> </BLOCKQUOTE> Now is goodtrack.cues.length 0 or 1?<BR> <BR> It seems to me that what we should do is check if the track's kind is "metadata" before following any of the other addCue() steps, which would mean in my example above, the answer would be 1.<BR> </BLOCKQUOTE> <BR> </BODY> </HTML> --=-+OLbdl2Rd5voszhcGatc--
Received on Monday, 10 February 2014 21:51:59 UTC