HTML | DOM Audio error Property
The DOM Audio error property is used to returns MediaError object and MediaError object contains error state of Video.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
Numbers: The MediaError Object returns a number representing the error state of the video:
- 1 = MEDIA_ERR_ABORTED – User aborted fetching process
- 2 = MEDIA_ERR_NETWORK – error occurred at the time of downloading
- 3 = MEDIA_ERR_DECODE – error occurred at the time of decoding
- 4 = MEDIA_ERR_SRC_NOT_SUPPORTED – audio are not supported
- Before Click on Button:
- After Click on Button:
Supported Browser: The browsers supported by HTML DOM Audio error property are listed below:
- Internet Explorer