[Bug 26939] Information returned on MediaStreamTrack ended event

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

Jan-Ivar Bruaroey [:jib] <jib@mozilla.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jib@mozilla.com

--- Comment #1 from Jan-Ivar Bruaroey [:jib] <jib@mozilla.com> ---
Firstly, people should not operate WebRTC while driving.

I don't have a strong preference, but if we're going to use events to report
success/failure, then overloading MediaStreamErrorEvent to make it fireable
without an error seems useful. It also shouldn't be a problem in practice (it's
not like listeners to the related 'onoverconstrained' are going to need to
check for null all of a sudden).

I hate to say it, but the 'ended' attribute would actually have made for a
great promise! E.g.

  pc.ended.then(() => log("Ended!")), err => log("Dropped! " + err));

-- 
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, 30 September 2014 15:23:03 UTC