W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > December 2016

Re: [mediacapture-record] UnknownError seems inappropriate

From: Miguel Casas-Sanchez via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Dec 2016 01:29:50 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-266915807-1481678988-sysbot+gh@w3.org>
These are the descriptions:
- [UnknownError](https://heycam.github.io/webidl/#unknownerror):
> The operation failed for an unknown transient reason (e.g. out of 
memory).

- [OperationError](https://heycam.github.io/webidl/#operationerror):
> The operation failed for an operation-specific reason.

Splitting hairs, really. I'd leave it as is.

FTR: Chrome returns `UnknownError` 
[here](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp?q=mediarecorder.cpp&sq=package:chromium&dr&l=223)
 on platform start error, whereas I don't see 
[FF](https://github.com/mozilla/gecko-dev/blob/master/dom/media/MediaRecorder.cpp#L1025)
 returning `UnknownError` at all (only `InvalidState` and 
`SecurityError`).


-- 
GitHub Notification of comment by miguelao
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-record/issues/98#issuecomment-266915807
 using your GitHub account
Received on Wednesday, 14 December 2016 01:29:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:30 UTC