MediaTrackConstraints.idl [plain text]
[
Conditional=MEDIA_STREAM,
JSGenerateToJSObject,
] dictionary MediaTrackConstraints : MediaTrackConstraintSet {
sequence<MediaTrackConstraintSet> advanced;
};
[
Conditional=MEDIA_STREAM,
JSGenerateToJSObject,
ImplementedAs=MediaTrackConstraintSet
] dictionary MediaTrackConstraintSet {
ConstrainLong width;
ConstrainLong height;
ConstrainDouble aspectRatio;
ConstrainDouble frameRate;
ConstrainDOMString facingMode;
ConstrainDouble volume;
ConstrainLong sampleRate;
ConstrainLong sampleSize;
ConstrainBoolean echoCancellation;
ConstrainDOMString deviceId;
ConstrainDOMString groupId;
};
typedef (double or ConstrainDoubleRange) ConstrainDouble;
typedef (long or ConstrainLongRange) ConstrainLong;
typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean;
typedef (DOMString or sequence<DOMString> or ConstrainDOMStringParameters) ConstrainDOMString;
[
Conditional=MEDIA_STREAM,
JSGenerateToJSObject,
ImplementedAs=ConstrainBooleanParameters
] dictionary ConstrainBooleanParameters {
boolean exact;
boolean ideal;
};
[
Conditional=MEDIA_STREAM,
JSGenerateToJSObject,
ImplementedAs=ConstrainDOMStringParameters
] dictionary ConstrainDOMStringParameters {
(DOMString or sequence<DOMString>) exact;
(DOMString or sequence<DOMString>) ideal;
};
[
Conditional=MEDIA_STREAM,
JSGenerateToJSObject,
ImplementedAs=ConstrainDoubleRange
] dictionary ConstrainDoubleRange : DoubleRange {
double exact;
double ideal;
};
[
Conditional=MEDIA_STREAM,
JSGenerateToJSObject,
ImplementedAs=ConstrainLongRange
] dictionary ConstrainLongRange : LongRange {
long exact;
long ideal;
};