MediaTrackCapabilities.webidl (1213B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 * 6 * The origin of this IDL file is 7 * https://w3c.github.io/mediacapture-main/getusermedia.html#dom-doublerange 8 * https://w3c.github.io/mediacapture-main/getusermedia.html#dom-ulongrange 9 * https://w3c.github.io/mediacapture-main/getusermedia.html#media-track-capabilities 10 */ 11 12 dictionary DoubleRange { 13 double max; 14 double min; 15 }; 16 17 dictionary ULongRange { 18 [Clamp] unsigned long max; 19 [Clamp] unsigned long min; 20 }; 21 22 dictionary MediaTrackCapabilities { 23 ULongRange width; 24 ULongRange height; 25 // DoubleRange aspectRatio; 26 DoubleRange frameRate; 27 sequence<DOMString> facingMode; 28 sequence<DOMString> resizeMode; 29 // ULongRange sampleRate; 30 // ULongRange sampleSize; 31 sequence<boolean> echoCancellation; 32 sequence<boolean> autoGainControl; 33 sequence<boolean> noiseSuppression; 34 // DoubleRange latency; 35 ULongRange channelCount; 36 DOMString deviceId; 37 DOMString groupId; 38 // sequence<boolean> backgroundBlur; 39 };