Re: DataCue questions

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.

--=-c/kyCJhvpXl76bF4JROo
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>
One more thing: If we call TextTrack's addCue() method with a DataCue, and the TextTrack's kind isn't &quot;metadata&quot;, 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(&quot;video&quot;)<BR>
    goodtrack = video.addTextTrack(&quot;metadata&quot;)<BR>
    badtrack = video.addTextTrack(&quot;subtitles&quot;)<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 &quot;metadata&quot; before following any of the other addCue() steps, which would mean in my example above, the answer would be 1.
</BODY>
</HTML>

--=-c/kyCJhvpXl76bF4JROo--

Received on Monday, 10 February 2014 21:48:07 UTC