Skip to content

Truly independent web browser

607 B
Raw Blame
// https://w3c.github.io/mediacapture-main/#mediadevices
[Exposed=Window, SecureContext]
interface MediaDevices : EventTarget {
    attribute EventHandler ondevicechange;
    [CreatesPromise] Promise<sequence<MediaDeviceInfo>> enumerateDevices();
    // https://w3c.github.io/mediacapture-main/#dom-mediadevices-getsupportedconstraints
    // Returns a dictionary whose members are the constrainable properties known to the User Agent.
    MediaTrackSupportedConstraints getSupportedConstraints();
    [CreatesPromise] Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints = {});
};