MediaError
Return to: HTML DOM Level 5 index

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() : MediaError

Error for media resource.

Returns
MediaError

Visibility
internal

Properties

Property Action Mozilla Chrome Safari Opera IE Netscape
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
Availability

WhatWG

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
Availability

WhatWG

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
Availability

WhatWG

The media resource indicated by the src attribute was not suitable.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

code : Number
Returns the current error's error code.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

References

MediaError

Availability

JavaScript 1.2|WhatWG

text_javascript aptana_docs