MediaError.hx 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright (C)2005-2017 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\MediaError.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `MediaError` interface represents an error associated to a media, like a `HTMLMediaElement`.
  26. Documentation [MediaError](https://developer.mozilla.org/en-US/docs/Web/API/MediaError) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/MediaError$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/MediaError>
  28. **/
  29. @:native("MediaError")
  30. extern class MediaError
  31. {
  32. static inline var MEDIA_ERR_ABORTED : Int = 1;
  33. static inline var MEDIA_ERR_NETWORK : Int = 2;
  34. static inline var MEDIA_ERR_DECODE : Int = 3;
  35. static inline var MEDIA_ERR_SRC_NOT_SUPPORTED : Int = 4;
  36. /**
  37. An <code>unsigned short </code> that represents the error:
  38. <table class="standard-table">
  39. <tr>
  40. Name
  41. Value
  42. Description
  43. </tr>
  44. <tr>
  45. <td><code>MEDIA_ERR_ABORTED</code></td>
  46. <td><code>1</code></td>
  47. <td>The fetching of the associated ressource has been aborted by the user</td>
  48. </tr>
  49. <tr>
  50. <td><code>MEDIA_ERR_NETWORK</code></td>
  51. <td><code>2</code></td>
  52. <td>A network error caused the ressource to stop being fetched.</td>
  53. </tr>
  54. <tr>
  55. <td><code>MEDIA_ERR_DECODE</code></td>
  56. <td><code>3</code></td>
  57. <td>A decoding error caused the ressource to stop being fetched.</td>
  58. </tr>
  59. <tr>
  60. <td><code>MEDIA_ERR_SRC_NOT_SUPPORTED</code></td>
  61. <td><code>4</code></td>
  62. <td>The associated ressource has been detected to be not suitable.</td>
  63. </tr>
  64. </table>
  65. **/
  66. var code(default,null) : Int;
  67. }