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 * http://dev.w3.org/2011/webrtc/editor/getusermedia.html
8 */
9
10dictionary MediaTrackSupportedConstraints {
11    boolean width = true;
12    boolean height = true;
13    boolean aspectRatio;        // to be supported
14    boolean frameRate = true;
15    boolean facingMode = true;
16    boolean volume;             // to be supported
17    boolean sampleRate;         // to be supported
18    boolean sampleSize;         // to be supported
19    boolean echoCancellation = true;
20    boolean noiseSuppression = true;
21    boolean autoGainControl = true;
22    boolean latency;            // to be supported
23    boolean channelCount = true;
24    boolean deviceId = true;
25    boolean groupId = true;
26
27    // Mozilla-specific extensions:
28
29    // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints
30    // OBE by http://w3c.github.io/mediacapture-screen-share
31
32    boolean mediaSource = true;
33
34    // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3
35    //              https://bugzilla.mozilla.org/show_bug.cgi?id=1193075
36
37    boolean browserWindow = true;
38    boolean scrollWithPage = true;
39    boolean viewportOffsetX = true;
40    boolean viewportOffsetY = true;
41    boolean viewportWidth = true;
42    boolean viewportHeight = true;
43};
44