MediaError
The MediaError interface represents an error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as audio or video.
Documentation MediaError by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static Members
MEDIA_ERR_ABORTED: IntMEDIA_ERR_NETWORK: IntMEDIA_ERR_DECODE: IntMEDIA_ERR_SRC_NOT_SUPPORTED: IntInstance Members
code: IntA number which represents the general type of error that occurred, as follows: /en-US/docs/Web/API/MediaError/code
message: StringA DOMString object containing a human-readable string which provides specific diagnostic information to help the reader understand the error condition which occurred; specifically, it isn't simply 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 ("").