MediaTrackSupportedConstraints.hx 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright (C)2005-2019 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla\MediaTrackSupportedConstraints.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `MediaTrackSupportedConstraints` dictionary establishes the list of constrainable properties recognized by the user agent or browser in its implementation of the `MediaStreamTrack` object. An object conforming to `MediaTrackSupportedConstraints` is returned by `MediaDevices.getSupportedConstraints()`.
  26. Documentation [MediaTrackSupportedConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSupportedConstraints) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSupportedConstraints$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSupportedConstraints>
  28. **/
  29. typedef MediaTrackSupportedConstraints = {
  30. /**
  31. A Boolean value whose value is `true` if the `aspectRatio` constraint is supported in the current environment.
  32. **/
  33. var ?aspectRatio : Bool;
  34. /**
  35. A Boolean whose value is `true` if the `autoGainControl` constraint is supported in the current environment.
  36. **/
  37. var ?autoGainControl : Bool;
  38. var ?browserWindow : Bool;
  39. /**
  40. A Boolean value whose value is `true` if the `channelCount` constraint is supported in the current environment.
  41. **/
  42. var ?channelCount : Bool;
  43. /**
  44. A Boolean value whose value is `true` if the `deviceId` constraint is supported in the current environment.
  45. **/
  46. var ?deviceId : Bool;
  47. /**
  48. A Boolean value whose value is `true` if the `echoCancellation` constraint is supported in the current environment.
  49. **/
  50. var ?echoCancellation : Bool;
  51. /**
  52. A Boolean value whose value is `true` if the `facingMode` constraint is supported in the current environment.
  53. **/
  54. var ?facingMode : Bool;
  55. /**
  56. A Boolean value whose value is `true` if the `frameRate` constraint is supported in the current environment.
  57. **/
  58. var ?frameRate : Bool;
  59. /**
  60. A Boolean value whose value is `true` if the `groupId` constraint is supported in the current environment.
  61. **/
  62. var ?groupId : Bool;
  63. /**
  64. A Boolean value whose value is `true` if the `height` constraint is supported in the current environment.
  65. **/
  66. var ?height : Bool;
  67. /**
  68. A Boolean value whose value is `true` if the `latency` constraint is supported in the current environment.
  69. **/
  70. var ?latency : Bool;
  71. var ?mediaSource : Bool;
  72. /**
  73. A Boolean whose value is `true` if the `noiseSuppression` constraint is supported in the current environment.
  74. **/
  75. var ?noiseSuppression : Bool;
  76. /**
  77. A Boolean value whose value is `true` if the `sampleRate` constraint is supported in the current environment.
  78. **/
  79. var ?sampleRate : Bool;
  80. /**
  81. A Boolean value whose value is `true` if the `sampleSize` constraint is supported in the current environment.
  82. **/
  83. var ?sampleSize : Bool;
  84. var ?scrollWithPage : Bool;
  85. var ?viewportHeight : Bool;
  86. var ?viewportOffsetX : Bool;
  87. var ?viewportOffsetY : Bool;
  88. var ?viewportWidth : Bool;
  89. /**
  90. A Boolean value whose value is `true` if the `volume` constraint is supported in the current environment.
  91. **/
  92. var ?volume : Bool;
  93. /**
  94. A Boolean value whose value is `true` if the `width` constraint is supported in the current environment.
  95. **/
  96. var ?width : Bool;
  97. }