[Bug 24930] New: the spec defines the removetrack event as part of the MediaStream interface, but never calls out when the event should be fired

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

            Bug ID: 24930
           Summary: the spec defines the removetrack event as part of the
                    MediaStream interface, but never calls out when the
                    event should be fired
           Product: WebRTC Working Group
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Capture and Streams
          Assignee: public-media-capture@w3.org
          Reporter: shijuns@microsoft.com
                CC: public-media-capture@w3.org

The Media Capture and Streams spec defines the removetrack event as part of the
MediaStream interface, but never calls out when the event should be fired.

Propose to change the following in Section 4.2.3

When the removeTrack() method is invoked, the user agent MUST run the following
steps:
1. Let track be the MediaStreamTrack argument and stream this MediaStream
object.
2. If stream is finished, throw an INVALID_STATE_ERR exception.
3. If track is in stream's track set, remove it.

to the following:

When the removeTrack() method is invoked, the user agent MUST run the following
steps:
1. Let track be the MediaStreamTrack argument and stream this MediaStream
object.
2. If track is ended, throw an INVALID_STATE_ERR exception.
3. If track is not in stream's track set, then abort these steps.
4. If track is in stream's track set, remove it, and then queue a task to fire
a removetrack event.

Note: a missing step (#3) is also added and a couple typos in step #2 are
fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Tuesday, 4 March 2014 22:55:17 UTC