Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

code property

Returns the current HTMLMediaError code or NULL if no error has occurred.

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

 

Syntax

object.get_code (MediaError)(number* error);

Property values

Type: number

MEDIA_ERR_ABORTED (1)

The fetching process for the media resource was aborted by the user.

MEDIA_ERR_NETWORK (2)

A network error has caused the user agent to stop fetching the media resource, after the resource was established to be usable.

MEDIA_ERR_DECODE (3)

An error has occurred in the decoding of the media resource, after the resource was established to be usable.

MEDIA_ERR_SRC_NOT_SUPPORTED (4)

The media resource specified by src was not usable.

MEDIA_ERR_SRC_NOT_SUPPORTED (5)

The encrypted media stream could not be played. This is because of one of the following conditions:

  • A key was not provided and a onmsneedkey handler was not provided
  • The provided key could not be applied.
  • Decryption is not supported for this media data.

Standards information

Remarks

If no error has occurred, the MediaError object is NULL.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft