2014-04-18 12:14:44 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/2011/webrtc/editor/getusermedia.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
enum SupportedVideoConstraints {
|
2014-04-18 12:16:08 -07:00
|
|
|
"other",
|
2014-04-18 12:14:44 -07:00
|
|
|
"facingMode",
|
|
|
|
"width",
|
|
|
|
"height",
|
2014-04-18 12:16:08 -07:00
|
|
|
"frameRate",
|
2014-07-21 11:57:28 -07:00
|
|
|
"mediaSource",
|
|
|
|
"browserWindow",
|
|
|
|
"scrollWithPage"
|
2014-04-18 12:14:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
enum SupportedAudioConstraints {
|
2014-04-18 12:16:08 -07:00
|
|
|
"other"
|
2014-04-18 12:14:44 -07:00
|
|
|
};
|
|
|
|
|
2014-07-07 23:01:27 -07:00
|
|
|
|
2014-04-18 12:14:44 -07:00
|
|
|
dictionary MediaTrackConstraintSet {
|
|
|
|
ConstrainLongRange width;
|
|
|
|
ConstrainLongRange height;
|
|
|
|
ConstrainDoubleRange frameRate;
|
|
|
|
ConstrainVideoFacingMode facingMode;
|
2014-07-07 23:01:27 -07:00
|
|
|
ConstrainMediaSource mediaSource = "camera";
|
2014-07-21 11:57:28 -07:00
|
|
|
long long browserWindow;
|
|
|
|
boolean scrollWithPage;
|
2014-04-18 12:14:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
// TODO: Bug 995352 can't nest unions
|
|
|
|
//typedef (long or ConstrainLongRange) ConstrainLong;
|
|
|
|
//typedef (double or ConstrainDoubleRange) ConstrainDouble;
|
|
|
|
|
|
|
|
typedef VideoFacingModeEnum ConstrainVideoFacingMode;
|
2014-07-07 23:01:27 -07:00
|
|
|
typedef MediaSourceEnum ConstrainMediaSource;
|
|
|
|
|
2014-04-18 12:14:44 -07:00
|
|
|
// TODO: Bug 767924 sequences in unions
|
|
|
|
//typedef (VideoFacingModeEnum or sequence<VideoFacingModeEnum>) ConstrainVideoFacingMode;
|
2014-07-07 23:01:27 -07:00
|
|
|
//typedef (MediaSourceEnum or sequence<MediaSourceEnum>) ConstrainMediaSource;
|