Creating a new ErrorEvent (PR #214)

The existing MediaStreamErrorEvent will be replaced with an OverconstrainedErrorEvent once PR #194 lands. However, there is still a need for the ended event to be able to include an error object for the cases when a track ends because of an error. Adam and I believe this general ErrorEvent will be of use for this spec, and perhaps the WebRTC spec, anytime an event can occur as a result of an error. Note that there is no requirement that the event always be an error. The use of a generic ErrorEvent object is analogous to how we use the generic Event object today.

I have proposed this in https://github.com/w3c/mediacapture-main/pull/214.

Please review and comment.

-- dan

Received on Tuesday, 7 July 2015 19:29:27 UTC