MediaTrackSupportedConstraints.webidl (1631B)
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 10 dictionary 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 resizeMode; // to be enabled by default 17 boolean volume; // to be supported 18 boolean sampleRate; // to be supported 19 boolean sampleSize; // to be supported 20 boolean echoCancellation = true; 21 boolean noiseSuppression = true; 22 boolean autoGainControl = true; 23 boolean latency; // to be supported 24 boolean channelCount = true; 25 boolean deviceId = true; 26 boolean groupId = true; 27 28 // Mozilla-specific extensions: 29 30 // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints 31 // OBE by http://w3c.github.io/mediacapture-screen-share 32 33 boolean mediaSource = true; 34 35 // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 36 // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 37 38 boolean browserWindow = true; 39 boolean scrollWithPage = true; 40 boolean viewportOffsetX = true; 41 boolean viewportOffsetY = true; 42 boolean viewportWidth = true; 43 boolean viewportHeight = true; 44 };