- From: <bugzilla@jessica.w3.org>
- Date: Tue, 04 Mar 2014 22:52:40 +0000
- To: public-media-capture@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24928
Bug ID: 24928
Summary: the spec defines the addtrack 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 addtrack 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 addTrack() 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 already in stream's track set, then abort these steps.
4. Add track to stream's track set.
to the following:
When the addTrack() 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 already in stream's track set, then abort these steps.
4. Add track to stream's track set, then queue a task to fire an addtrack
event.
Note: this will also fix a couple typos in step #2, i.e. from "stream is
finished" to "track is ended".
--
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:52:42 UTC