| 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 // aspectRatio is not implemented. |
| 11 // double aspectRatio; |
| 11 double frameRate; | 12 double frameRate; |
| 12 DOMString facingMode; | 13 DOMString facingMode; |
| 13 double volume; | 14 // volume, sampleRate and sampleSize are not implemented. |
| 14 long sampleRate; | 15 // double volume; |
| 15 long sampleSize; | 16 // long sampleRate; |
| 16 boolean echoCancellation; | 17 // long sampleSize; |
| 17 double latency; | 18 // echoCancellation is not implemented: crbug.com/682245 |
| 18 long channelCount; | 19 // boolean echoCancellation; |
| 20 // latency and channelCount are not implemented. |
| 21 // double latency; |
| 22 // long channelCount; |
| 19 DOMString deviceId; | 23 DOMString deviceId; |
| 20 DOMString groupId; | 24 // groupId is not implemented. |
| 25 // DOMString groupId; |
| 21 // Media Capture Depth Stream Extensions | 26 // Media Capture Depth Stream Extensions |
| 22 // https://w3c.github.io/mediacapture-depth/#mediatracksettings-dictionary | 27 // https://w3c.github.io/mediacapture-depth/#mediatracksettings-dictionary |
| 23 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, | 28 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, |
| 24 // focalLengthX and focalLengthY attributes should be declared as partial | 29 // focalLengthX and focalLengthY attributes should be declared as partial |
| 25 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. | 30 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. |
| 26 [RuntimeEnabled=MediaCaptureDepth] DOMString videoKind; | 31 [RuntimeEnabled=MediaCaptureDepth] DOMString videoKind; |
| 27 [RuntimeEnabled=MediaCaptureDepth] double depthNear; | 32 [RuntimeEnabled=MediaCaptureDepth] double depthNear; |
| 28 [RuntimeEnabled=MediaCaptureDepth] double depthFar; | 33 [RuntimeEnabled=MediaCaptureDepth] double depthFar; |
| 29 [RuntimeEnabled=MediaCaptureDepth] double focalLengthX; | 34 [RuntimeEnabled=MediaCaptureDepth] double focalLengthX; |
| 30 [RuntimeEnabled=MediaCaptureDepth] double focalLengthY; | 35 [RuntimeEnabled=MediaCaptureDepth] double focalLengthY; |
| 31 }; | 36 }; |
| OLD | NEW |