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

Error Handling question on Media Recorder API

From: Randy Lin <rlin@mozilla.com>
Date: Wed, 1 Jan 2014 19:01:34 -0800 (PST)
To: public-media-capture@w3.org
Message-ID: <22937253.1577950.1388631694581.JavaMail.zimbra@mozilla.com>
Hi All,
>From this spec 
https://dvcs.w3.org/hg/dap/raw-file/tip/media-stream-capture/MediaRecorder.html#idl-def-RecordingErrorNameEnum.xOtherRecordingError
On 5. Error Handling section, 
Some exceptions require additional information and should pass through message attribute via DOMError interface, 
like
  --OutOfMemory	The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.
  --OtherRecordingError	Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.

But refer to the 3.2 Interface DOMError
http://www.w3.org/TR/2012/WD-dom-20121206/#interface-domerror

  interface DOMError {
    readonly attribute DOMString name;
  };

We don't have the message attribute for exceptions.
Is it possible to create new interface for media recorder API?
-------------------------------------

-rlin
Received on Thursday, 2 January 2014 03:02:01 UTC

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