michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is michael@0: * http://dev.w3.org/2011/webrtc/editor/getusermedia.html michael@0: */ michael@0: michael@0: enum SupportedVideoConstraints { michael@0: "other", michael@0: "facingMode", michael@0: "width", michael@0: "height", michael@0: "frameRate", michael@0: }; michael@0: michael@0: enum SupportedAudioConstraints { michael@0: "other" michael@0: }; michael@0: michael@0: dictionary MediaTrackConstraintSet { michael@0: ConstrainLongRange width; michael@0: ConstrainLongRange height; michael@0: ConstrainDoubleRange frameRate; michael@0: ConstrainVideoFacingMode facingMode; michael@0: }; michael@0: michael@0: // TODO: Bug 995352 can't nest unions michael@0: //typedef (long or ConstrainLongRange) ConstrainLong; michael@0: //typedef (double or ConstrainDoubleRange) ConstrainDouble; michael@0: michael@0: typedef VideoFacingModeEnum ConstrainVideoFacingMode; michael@0: // TODO: Bug 767924 sequences in unions michael@0: //typedef (VideoFacingModeEnum or sequence) ConstrainVideoFacingMode;