diff --git a/MediaRecorder.bs b/MediaRecorder.bs index 7f11108..582e6ad 100644 --- a/MediaRecorder.bs +++ b/MediaRecorder.bs @@ -170,7 +170,7 @@ interface MediaRecorder : EventTarget {
Called to handle the resume event.
onerror
-
Called to handle a {{MediaRecorderErrorEvent}}.
+
Called to handle an {{ErrorEvent}}.
videoBitsPerSecond
The target bitrate used to encode video tracks.
@@ -669,8 +669,7 @@ dictionary BlobEventInit { This section is non-normative. The UA will throw a {{DOMException}} when the error can be detected at the time -that the call is made. In all other cases the UA will fire an event named -{{MediaRecorderErrorEvent}}. If recording has been started and not yet stopped +that the call is made. In all other cases the UA will fire an error event. If recording has been started and not yet stopped when the error occurs, let blob be the {{Blob}} of collected data so far; after raising the error, the UA will fire a dataavailable event with blob; immediately after the UA will then @@ -680,68 +679,9 @@ maximum {{Blob}} size that it will support, or the number of {{MediaStreamTrack}}s it will record at once. It will signal a fatal error if these limits are exceeded. -## MediaRecorderErrorEvent ## {#errorevent-section} +## Error events ## {#errorevent-section} -The {{MediaRecorderErrorEvent}} interface is defined for cases when an event is -raised that was caused by an error. - -To fire an error event -named e with a {{DOMException}} named error means that an -event with the name e, which does not bubble (except where otherwise -stated) and is not cancelable (except where otherwise stated), and which uses -the {{MediaRecorderErrorEvent}} interface with the -{{MediaRecorderErrorEvent/error}} attribute set to error, must be -created and -dispatched at -the given target. - -
-dictionary MediaRecorderErrorEventInit : EventInit {
-  required DOMException error;
-};
-
-[Exposed=Window]
-interface MediaRecorderErrorEvent : Event {
-  constructor(DOMString type, MediaRecorderErrorEventInit eventInitDict);
-  [SameObject] readonly attribute DOMException error;
-};
-
- -### Constructors ### {#errorevent-constructor} - -
-
MediaRecorderErrorEvent(DOMString type, MediaRecorderErrorEventInit eventInitDict)
-
- Constructs a new {{MediaRecorderErrorEvent}}. - - -
-
- -### Attributes ### {#errorevent-attributes} - -
-
error
-
The DOMException error that triggered the event.
-
- -### MediaRecorderErrorEventInit ### {#erroreventinit} - -
-
error
-
The {{DOMException}} causing the error that triggered the event. - An explanatory message about the error circumstances MAY be provided - in its - message attribute. - -
- If an implementation places non-standard properties on {{DOMException}}, - exposing e.g. stack traces or error line numbers, these are encouraged to - point to whichever method call most closely identifies the run-time operation - that caused the error, e.g. {{start()}}. -
-
-
+To fire an error event means to [= fire an event =] using {{ErrorEvent}} as eventConstructor. ## Exception Summary ## {#exception-summary} @@ -826,7 +766,7 @@ The following additional events fire on {{MediaRecorder}} objects: error - {{MediaRecorderErrorEvent}} + {{ErrorEvent}} An error has occurred, e.g. out of memory or a modification to the {{MediaRecorder/stream}} has occurred that makes it impossible to continue recording (e.g. a Track has been added to or removed from