This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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