16 lines
469 B
Text
16 lines
469 B
Text
// https://w3c.github.io/mediacapture-main/#dom-mediadevicekind
|
|
enum MediaDeviceKind {
|
|
"audioinput",
|
|
"audiooutput",
|
|
"videoinput"
|
|
};
|
|
|
|
// https://w3c.github.io/mediacapture-main/#mediadeviceinfo
|
|
[Exposed=Window, SecureContext]
|
|
interface MediaDeviceInfo {
|
|
readonly attribute DOMString deviceId;
|
|
readonly attribute MediaDeviceKind kind;
|
|
readonly attribute DOMString label;
|
|
readonly attribute DOMString groupId;
|
|
[Default] object toJSON();
|
|
};
|