blob: deb815f57ab50f8b5553d09ac238f74a0c02f0fa [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
dictionary MediaTrackCapabilities {
LongRange width;
LongRange height;
DoubleRange aspectRatio;
DoubleRange frameRate;
sequence<DOMString> facingMode;
sequence<DOMString> resizeMode;
sequence<boolean> echoCancellation;
// See http://crbug.com/846270.
[OriginTrialEnabled=ExperimentalHardwareEchoCancellation] sequence<DOMString> echoCancellationType;
sequence<boolean> autoGainControl;
sequence<boolean> noiseSuppression;
LongRange sampleSize;
DOMString deviceId;
DOMString groupId;
// W3C Image Capture API
// https://w3c.github.io/mediacapture-image/#mediatrackcapabilities-section
// TODO(mcasas) move out when partial dictionaries are supported
// http://crbug.com/579896.
sequence<DOMString> whiteBalanceMode;
sequence<DOMString> exposureMode;
sequence<DOMString> focusMode;
MediaSettingsRange exposureCompensation;
MediaSettingsRange exposureTime;
MediaSettingsRange colorTemperature;
MediaSettingsRange iso;
MediaSettingsRange brightness;
MediaSettingsRange contrast;
MediaSettingsRange saturation;
MediaSettingsRange sharpness;
MediaSettingsRange focusDistance;
MediaSettingsRange zoom;
boolean torch;
};