OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatracksupportedconstrain
ts | 5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatracksupportedconstrain
ts |
6 | 6 |
7 // NOTE: The names of this dictionary MUST be kept aligned with those in | 7 // NOTE: The names of this dictionary MUST be kept aligned with those in |
8 // MediaTrackConstraintSet.idl. | 8 // MediaTrackConstraintSet.idl. |
9 | 9 |
10 dictionary MediaTrackSupportedConstraints { | 10 dictionary MediaTrackSupportedConstraints { |
11 boolean width = true; | 11 boolean width = true; |
12 boolean height = true; | 12 boolean height = true; |
13 boolean aspectRatio = true; | 13 boolean aspectRatio = true; |
14 boolean frameRate = true; | 14 boolean frameRate = true; |
15 boolean facingMode = true; | 15 boolean facingMode = true; |
16 boolean volume = true; | 16 boolean volume = true; |
17 boolean sampleRate = true; | 17 boolean sampleRate = true; |
18 boolean sampleSize = true; | 18 boolean sampleSize = true; |
19 boolean echoCancellation = true; | 19 boolean echoCancellation = true; |
20 boolean latency = true; | 20 boolean latency = true; |
21 boolean channelCount = true; | 21 boolean channelCount = true; |
22 boolean deviceId = true; | 22 boolean deviceId = true; |
23 boolean groupId = true; | 23 boolean groupId = true; |
| 24 // Media Capture Depth Stream Extensions |
| 25 // https://w3c.github.io/mediacapture-depth |
| 26 // TODO(aleksandar.stojiljkovic): depthNear, depthFar, focalLengthX and |
| 27 // focalLengthY attributes should be declared as partial dictionary but IDL |
| 28 // parser can't support it yet. Please see: http://crbug.com/579896. |
| 29 [RuntimeEnabled=MediaCaptureDepth] boolean depthNear = true; |
| 30 [RuntimeEnabled=MediaCaptureDepth] boolean depthFar = true; |
| 31 [RuntimeEnabled=MediaCaptureDepth] boolean focalLengthX = true; |
| 32 [RuntimeEnabled=MediaCaptureDepth] boolean focalLengthY = true; |
24 }; | 33 }; |
OLD | NEW |