W3C home > Mailing lists > Public > public-media-capture@w3.org > April 2014

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 08 Apr 2014 08:48:53 +0000
To: public-media-capture@w3.org
Message-ID: <bug-25248-5753-biimNql5tr@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25248

--- Comment #3 from Kiran <kiran.guduru@samsung.com> ---
(In reply to Adam Bergkvist from comment #2)
> Not firing the event is intentional since the script is explicitly stopping
> the MediaStreamTrack and the readyState is immediately updated.

In section 8. Event Summary [1], it is specified that, invoking stop() is one
of the reasons for firing ended event, which is conflicting to this statement
"Not firing the event is intentional".

So either we have to add this event while stopping 

or

If we don't want to fire the ended event intentionally, then we have to modify
the below statement to avoid conflict.



"The MediaStreamTrack object's source will no longer provide any data, either
because the user revoked the permissions, or because the source device has been
ejected, or because the remote peer stopped sending data, or because the stop()
method was invoked."

to

"The MediaStreamTrack object's source will no longer provide any data, either
because the user revoked the permissions, or because the source device has been
ejected, or because the remote peer stopped sending data."



[1] http://dev.w3.org/2011/webrtc/editor/getusermedia.html#event-summary

-- 
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, 8 April 2014 08:48:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:26 UTC