Video errorProperty
Examples
Get the video's error status:
var x = document.getElementById("myVideo").error.code;
Try it Yourself »
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.
Note:This property is read-only.
Browser Support
![]()
![]()
![]()
![]()
![]()
Only Internet Explorer browser supports the error property.
Note:Internet Explorer 8 and earlier IE versions do not support this element.
Syntax
videoObject.error.code
Return Value
| Type | Description |
|---|---|
| Numeric value |
The code property of the MediaError object returns a numeric value that represents the error status of the audio/video:
|
Video Object Other extensions