code
Summary
Returns the current HTMLMediaError code or null if no error has occurred.
Property of dom/HTMLMediaErrordom/HTMLMediaError
Syntax
Note: This property is read-only.
var errorCode = audio.error.code;
Return Value
Returns an object of type unsigned shortunsigned short
The error code (from the MediaError constants), or null.
Notes
If no error has occurred, the MediaError object is null.
Related specifications
- W3C HTML5
- Working Draft
- WHATWG HTML
- Living Standard
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]