[Bug 25250] New: Ended track should not be added to MediaStream, when addTrack() is invoked for and ended track.

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

            Bug ID: 25250
           Summary: Ended track should not be added to MediaStream, when
                    addTrack() is invoked for and ended track.
           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: kiran.guduru@samsung.com
                CC: public-media-capture@w3.org

When section 4.2.3 [1] addTrack() is invoked, if that track is already ended,
it should not be added to a MediaStream.

The steps for addTrack() should be modified as below to make it sync with 4.2
(Adding tracks when MediaStream constructor is invoked
"If track has ended, then abort these steps and continue with the next track
(if any).")


1. Let track be the MediaStreamTrack argument and stream this MediaStream
object.

2. If track has ended, then abort these steps.

3. If track is already in stream's track set, then abort these steps.

4. Add track to stream's track set.

(step 2 is the newly added step).

[1]
http://dev.w3.org/2011/webrtc/editor/getusermedia.html#dom-mediastreamtrack-enabled

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

Received on Thursday, 3 April 2014 17:18:10 UTC