HTML DOM Video error property
Examples
Get the error state of the video:
var x = document.getElementById ( "myVideo") error.code.;
try it"
Definition and Usage
property returns an error MediaError object.
MediaError object code property contains the error status of audio / video.
Note: This property is read-only attribute.
Browser Support
Only Internet Explorer browsers support error property.
Note: Internet Explorer 8 and earlier versions of IE do not support the element.
grammar
videoObject .error.code
return value
Types of | description |
---|---|
Numeric values | code property MediaError object returns a numeric value that represents the error status Audio / Video:
|
Video Object