[Bug 12530] Make TrackList an Array-like list of Track objects and move get* into those

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12530

Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipj@opera.com

--- Comment #1 from Philip Jägenstedt <philipj@opera.com> 2011-04-20 08:54:32 UTC ---
The current API is a bit odd in that textTracks is an array of TextTrack where
TextTrack has properties like kind/label/language, but audioTracks and
videoTracks is are MultipleTrackList/ExclusiveTrackList where the same data is
retrieved via getLabel and getLanguage getters.

I'm not sure what the motivation for this is, but it seems less confusing for
script authors if the interfaces were more similar, possible sharing a common
interface for what few properties are shared between text, audio and video
tracks.

-- 
Configure bugmail: http://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 Wednesday, 20 April 2011 08:54:34 UTC