MediaError - Web APIs | MDN

Instance properties

This interface doesn't inherit any properties.

MediaError.code

A number which represents the general type of error that occurred.

MediaError.message

A human-readable string which provides specific diagnostic information to help the reader understand the error condition which occurred; specifically, it isn't a summary of what the error code means, but actual diagnostic information to help in understanding what exactly went wrong. This text and its format is not defined by the specification and will vary from one user agent to another. If no diagnostics are available, or no explanation can be provided, this value is an empty string ("").

Instance methods

This interface doesn't implement or inherit any methods, and has none of its own.

Specifications

Specification
HTML
# error-codes

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.