[Bug 17168] Track selection cannot be performed (synchronously) per inserted track

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

--- Comment #1 from Philip J <philipj@opera.com> 2012-05-24 13:06:57 UTC ---
The spec text begins with "When a text track corresponding to a track element
is added to a media element's list of text tracks, the user agent must set the
text track mode appropriately, as determined by the following conditions:"

It appears that this requires the steps that follow to be run synchronously
when a track element is inserted, which is not what we want to implement. Doing
so could mean that if a user has indicated a preference for English, French and
Swedish (in that order) and tracks in Swedish, French and English are added by
script (in that order), the Swedish and French tracks will first be enabled,
and then set to hidden when the next track is added.

We want to implement a heuristic that look at the set of available tracks all
at once and picks enables those that that are relevant. This heuristic should
be run synchronously when the parser encounters </video> (including in
innerHTML) and after awaiting a stable state if a script inserts a <track>
element.

-- 
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 Thursday, 24 May 2012 13:07:05 UTC