Used to store the errors from media resources.
Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
MediaError Constructor() : MediaError
Error for media resource.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | ||
MediaError() : MediaErrorError for media resource. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
MEDIA_ERR_ABORTED
: Number
The fetching process for the media resource was aborted by the user agent at the user's request. (numeric value 1)
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
MEDIA_ERR_NETWORK
: Number
A network error of some description caused the user agent to stop fetching the media resource, after the resource was established
to be usable. (numeric value 2)
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
MEDIA_ERR_DECODE
: Number
An error of some description occurred while decoding the media resource, after the resource was established to be usable.(numeric
value 3)
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
MEDIA_ERR_SRC_NOT_SUPPORTED
: Number
The media resource indicated by the src attribute was not suitable.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
code
: Number
Returns the current error's error code.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
References
Availability
JavaScript 1.2|WhatWG