[Bug 17235] <track> missed cues will include all past cues from a newly enabled track

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17235

--- Comment #1 from Philip J <philipj@opera.com> 2012-05-29 15:42:56 UTC ---
<quote>
1. Let current cues be a list of cues, initialized to contain all the cues of
all the hidden, showing, or showing by default text tracks of the media element
(not the disabled ones) whose start times are less than or equal to the current
playback position and whose end times are greater than the current playback
position.

2. Let other cues be a list of cues, initialized to contain all the cues of
hidden, showing, and showing by default text tracks of the media element that
are not present in current cues.

4. If the current playback position has, since the last time this algorithm was
run, only changed through its usual monotonic increase during normal playback,
then let missed cues be the list of cues in other cues whose start times are
greater than or equal to last time and whose end times are less than or equal
to the current playback position. Otherwise, let missed cues be an empty list.
</quote>

By this definition, switching tracks while playback is ongoing will cause all
cues in the new track that have already ended to be treated as missed, which
will cause enter/exit events to be fired. This seems fairly broken and is not
what we want to implement.

A quickfix that matches our intentions is to rewrite step 2 to only add cues
from tracks that were in the track list the last time the algorithm was run to
"other cues".

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 29 May 2012 15:43:02 UTC