[Bug 25248] New: MediaStreamTrack.stop() should fire ended event.

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

            Bug ID: 25248
           Summary: MediaStreamTrack.stop() should fire ended event.
           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

After calling the MediaStreamTrack.stop() method, the text in 4.3.2.2 of [1]
stop mentions to set the readystate attribute to ended. But misses indicating
to fire ended event.

The steps should be modified as below (step 4. is the newly added step).

1. Let track be the current MediaStreamTrack object.

2. If track has no source attached (sourceType is "none") or if the source is
provided by an RTCPeerConnection, then abort these steps.

3. Set track's readyState attribute to ended.

4. Fire a simple event named ended at the track.

5. Detach track's source.


[1] http://dev.w3.org/2011/webrtc/editor/getusermedia.html

-- 
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 16:14:40 UTC