OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#MediaRecorderErr
orEvent |
| 6 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#idl-def-Recordin
gErrorNameEnum |
| 7 |
| 8 // TODO(mcasas): Remove completely MediaRecorderErrorEvent.* and use generic DOM
Exception instead, see https://github.com/w3c/mediacapture-record/issues/14. |
| 9 enum RecordingErrorNameEnum { |
| 10 "InvalidState", |
| 11 "OutOfMemory", |
| 12 "IllegalStreamModification", |
| 13 "SecurityError", |
| 14 "OtherRecordingError" |
| 15 }; |
| 16 |
| 17 // TODO(mcasas): This object should not be a NoInterfaceObject, https://github.c
om/w3c/mediacapture-record/issues/15. |
| 18 [ |
| 19 NoInterfaceObject |
| 20 ] interface MediaRecorderErrorEvent : Event { |
| 21 readonly attribute RecordingErrorNameEnum name; |
| 22 readonly attribute DOMString? message; |
| 23 }; |
OLD | NEW |