Extended by
MediaErrorImpl
Constructors
new MediaError()
new MediaError(code,message): MediaError
Parameters
code
number
message
string
Returns
MediaErrorProperties
code
Returns the current error’s error code, from the list below. For additional information, see https://html.spec.whatwg.org/multipage/media.html#concept-mediaerror-code.readonlycode:number
message
Returns a specific informative diagnostic message about the error condition encountered. For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-mediaerror-message.readonlymessage:string
MEDIA_ERR_ABORTED
The fetching process for the media resource was aborted by the platform at the user’s request. For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-mediaerror-media_err_aborted.staticreadonlyMEDIA_ERR_ABORTED:1=1
MEDIA_ERR_NETWORK
A network error of some description caused the platform to stop fetching the media resource, after the resource was established to be usable. https://html.spec.whatwg.org/multipage/media.html#dom-mediaerror-media_err_network.staticreadonlyMEDIA_ERR_NETWORK:2=2
MEDIA_ERR_DECODE
An error of some description occurred while decoding the media resource, after the resource was established to be usable. For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-mediaerror-media_err_decode.staticreadonlyMEDIA_ERR_DECODE:3=3
MEDIA_ERR_SRC_NOT_SUPPORTED
The media resource indicated by the src attribute or assigned media provider object was not suitable. For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-mediaerror-media_err_src_not_supported.staticreadonlyMEDIA_ERR_SRC_NOT_SUPPORTED:4=4

