Home > Article > Web Front-end > html5 returns the error attribute of a MediaError object
Example
myVid=document.getElementById("video1"); alert(myVid.error.code);
Definition and usage
error PropertiesReturn a MediaError object.
The code attribute of the MediaError object contains the error status of audio/video.
Browser support
Only Internet Explorer 9 supports the error attribute.
Syntax
audio|video.error.code
Return value
Type | Description |
Numeric value |
The code attribute of the MediaError object returns a numeric value, which represents the error status of the audio/video:
|
##
The above is the detailed content of html5 returns the error attribute of a MediaError object. For more information, please follow other related articles on the PHP Chinese website!