Easy Tutorial
❮ Att Option Label Att Param Value ❯

HTML Audio/Video DOM error Property

HTML Audio/Video DOM Reference Manual

Example

Get the error status of the video:


Definition and Usage

The error property returns a MediaError object.

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


Browser Support

Only Internet Explorer 9 supports the error property.


Syntax

Return Value

Type Description
Number The code property of the MediaError object returns a numeric value representing the error status of the audio/video: 1 = MEDIA_ERR_ABORTED - Retrieval process was aborted by the user<br> 2 = MEDIA_ERR_NETWORK - An error occurred while downloading<br> 3 = MEDIA_ERR_DECODE - An error occurred while decoding<br> 4 = MEDIA_ERR_SRC_NOT_SUPPORTED - Audio/Video not supported
❮ Att Option Label Att Param Value ❯