// 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();
};
