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

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