error property

Returns an object representing the current error state of the audio or video element.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.1

Syntax

JavaScript

error = object.error

Property values

Type: Object

Object representing current error state of the media element.

Standards information

Remarks

error returns null if no error has occurred.

See also

audio element
audio object
media
video element
video object
How to use HTML5 to play video files on your webpage
How to use HTML5 to Add an Audio Player to your Webpage

 

 

Show:
© 2014 Microsoft