[Bug 25262] New: MediaStream Constructor algorithm must also check for MediaStreamTracks "ended" state while initializing "active" state.

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

            Bug ID: 25262
           Summary: MediaStream Constructor algorithm must also check for
                    MediaStreamTracks "ended" state while initializing
                    "active" state.
           Product: WebRTC Working Group
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            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

MediaStream constructor algorithm (section 4.2) in [1] specifies that

"A MediaStream object is said to be MediaStream.inactive when it does not have
any tracks or all tracks belonging to the stream have ended. Otherwise the
stream is active."

But step 4 in MediaStream constructor algorithm (section 4.2) is checking only
whether streams track set is empty for assigning MediaStreams "active" state to
true or false. Since according to correction specified in (#25250)[2] there are
chances for a MediaStream to contain ended tracks. So it must also check for
MediaStreamTracks ended state while assigning "active" state to true or false.

4. If stream's track set is empty, set stream's active attribute to false,
otherwise set it to true.

should be corrected as below

4. If stream's track set is empty or all tracks in track set are ended, set
stream's active attribute to false, otherwise set it to true.

[1] http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=25250

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

Received on Friday, 4 April 2014 17:10:46 UTC