Easy Tutorial
❮ Met His Back Prop Area Search ❯

Audio error Attribute

Audio Object

Example

Get the error status of the audio:


Definition and Usage

The error attribute returns a MediaError object.

The code property of the MediaError object contains the error status of the audio/video.

Note: This attribute is read-only.


Browser Support

Currently, only Internet Explorer supports the error attribute.

Note: Internet Explorer 8 and earlier versions do not support this attribute.


Syntax

Return Value

Type Description
Numeric Value The code property of the MediaError object returns a numeric value representing the error status of the audio: 1 = MEDIA_ERR_ABORTED - Retrieval process was aborted by the user<br> 2 = MEDIA_ERR_NETWORK - Error occurred while downloading<br> 3 = MEDIA_ERR_DECODE - Error occurred while decoding<br> 4 = MEDIA_ERR_SRC_NOT_SUPPORTED - Audio/video not supported
❮ Met His Back Prop Area Search ❯