W3cubDocs

/Haxe JavaScript

MediaError

package js.html

@:native("MediaError") Available on js

The MediaError interface represents an error associated to a media, like a HTMLMediaElement.

Documentation MediaError by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only code:Int

An unsigned short that represents the error:

Name Value Description
MEDIA_ERR_ABORTED 1 The fetching of the associated ressource has been aborted by the user
MEDIA_ERR_NETWORK 2 A network error caused the ressource to stop being fetched.
MEDIA_ERR_DECODE 3 A decoding error caused the ressource to stop being fetched.
MEDIA_ERR_SRC_NOT_SUPPORTED 4 The associated ressource has been detected to be not suitable.

Static variables

@:value(1) static inline read only MEDIA_ERR_ABORTED:Int = 1

@:value(3) static inline read only MEDIA_ERR_DECODE:Int = 3

@:value(2) static inline read only MEDIA_ERR_NETWORK:Int = 2

@:value(4) static inline read only MEDIA_ERR_SRC_NOT_SUPPORTED:Int = 4

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MediaError.html