[Bug 22035] New: The "removetrack" and "addtrack" events are out of sync with their HTML5 media definitions

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

            Bug ID: 22035
           Summary: The "removetrack" and "addtrack" events are out of
                    sync with their HTML5 media definitions
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
          Assignee: adrianba@microsoft.com
          Reporter: jdsmith@microsoft.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

The "removetrack" and "addtrack" events are out of sync with their HTML5 media
definitions.  In a number of places in the MSE spec, a track is added or
removed and a simple event fired.  For example, step 5.1.5 under 3.5.6
“Initialization Segment Received” currently says:

“Queue a task to fire a simple event named addtrack at the AudioTrackList
object referenced by the audioTracks attribute on this SourceBuffer object.”

The HTML5 media specification has this language for addition of AudioTrack or
VideoTracks under 4.8.10.5 “Loading the media resource”:

“Fire a trusted event with the name addtrack, that does not bubble and is not
cancelable, and that uses the TrackEvent interface, with the track attribute
initialized to the new AudioTrack object, at this AudioTrackList object.”

Similar trusted event language should be used in MSE.  This affects:

AddTrack in 3.5.6 Initialization Segment Received (steps 5.1.5, 5.1.7, 5.2.5,
5.2.7, 5.3.5 & 5.3.7)
RemoveTrack in 2.2 Methods removeSourceBuffer (steps 5.1.4, 5.1.6, 7.1.4,
7.1.6, 9.1.4 & 9.1.6)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 14 May 2013 23:17:24 UTC