| 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-mediatracksettings | 5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatracksettings |
| 6 | 6 |
| 7 dictionary MediaTrackSettings { | 7 dictionary MediaTrackSettings { |
| 8 long width; | 8 long width; |
| 9 long height; | 9 long height; |
| 10 double aspectRatio; | 10 double aspectRatio; |
| 11 double frameRate; | 11 double frameRate; |
| 12 DOMString facingMode; | 12 DOMString facingMode; |
| 13 double volume; | 13 double volume; |
| 14 long sampleRate; | 14 long sampleRate; |
| 15 long sampleSize; | 15 long sampleSize; |
| 16 boolean echoCancellation; | 16 boolean echoCancellation; |
| 17 double latency; | 17 double latency; |
| 18 long channelCount; | 18 long channelCount; |
| 19 DOMString deviceId; | 19 DOMString deviceId; |
| 20 DOMString groupId; | 20 DOMString groupId; |
| 21 // Media Capture Depth Stream Extensions |
| 22 // https://w3c.github.io/mediacapture-depth/#mediatracksettings-dictionary |
| 23 // TODO(aleksandar.stojiljkovic): depthNear, depthFar, focalLengthX and |
| 24 // focalLengthY attributes should be declared as partial dictionary but IDL |
| 25 // parser can't support it yet. Please see: http://crbug.com/579896. |
| 26 [RuntimeEnabled=MediaCaptureDepth] double depthNear; |
| 27 [RuntimeEnabled=MediaCaptureDepth] double depthFar; |
| 28 [RuntimeEnabled=MediaCaptureDepth] double focalLengthX; |
| 29 [RuntimeEnabled=MediaCaptureDepth] double focalLengthY; |
| 21 }; | 30 }; |
| OLD | NEW |