OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // https://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-MediaTrackC
onstraintSet |
| 6 |
| 7 typedef ConstrainLongRange ConstrainLong; |
| 8 typedef ConstrainDoubleRange ConstrainDouble; |
| 9 typedef ConstrainBooleanParameters ConstrainBoolean; |
| 10 typedef ConstrainDOMStringParameters ConstrainDOMString; |
| 11 // The spec says that the typedefs should be: |
| 12 // typedef (long or ConstrainLongRange) ConstrainLong; |
| 13 // typedef (double or ConstrainDoubleRange) ConstrainDouble; |
| 14 // typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean; |
| 15 // typedef (DOMString or sequence<DOMString> or ConstrainDomStringParameters) Co
nstrainDomString; |
| 16 // This is blocked on https://crbug.com/524424 |
| 17 |
| 18 dictionary MediaTrackConstraintSet { |
| 19 [RuntimeEnabled=MediaConstraints] ConstrainLong width; |
| 20 [RuntimeEnabled=MediaConstraints] ConstrainLong height; |
| 21 [RuntimeEnabled=MediaConstraints] ConstrainDouble aspectRatio; |
| 22 [RuntimeEnabled=MediaConstraints] ConstrainDouble frameRate; |
| 23 [RuntimeEnabled=MediaConstraints] ConstrainDOMString facingMode; |
| 24 [RuntimeEnabled=MediaConstraints] ConstrainDouble volume; |
| 25 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleRate; |
| 26 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleSize; |
| 27 [RuntimeEnabled=MediaConstraints] ConstrainBoolean echoCancellation; |
| 28 [RuntimeEnabled=MediaConstraints] ConstrainDouble latency; |
| 29 [RuntimeEnabled=MediaConstraints] ConstrainLong channelCount; |
| 30 [RuntimeEnabled=MediaConstraints] ConstrainDOMString deviceId; |
| 31 [RuntimeEnabled=MediaConstraints] ConstrainDOMString groupId; |
| 32 // The "mandatory" and "_optional" members are retained for conformance |
| 33 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ |
| 34 Dictionary mandatory; |
| 35 sequence<Dictionary> _optional; |
| 36 }; |
OLD | NEW |