MediaError

All media elements have an associated error status, which records the last error the element encountered since its resource selection algorithm was last invoked. The error attribute, on getting, must return the MediaError object created for this last error, or null if there has not been an error.


Supported Platform(s)

- BlackBerry OS 6.0+
- BlackBerry PlayBook 1.0+
- BlackBerry 10
- Ripple Emulator
View Supported Platform Table
APIBB5.0BB6.0BB7.0PB1.0PB2.0BB10Ripple
code   Y Y Y Y YY
MEDIA_ERR_ABORTED   Y Y Y Y YY
MEDIA_ERR_NETWORK   Y Y Y Y YY
MEDIA_ERR_DECODE   Y Y Y Y YY
MEDIA_ERR_SRC_NOT_SUPPORTED   Y Y Y Y YY

Configuration Document Settings

To use all of the API described for this object, you must ensure the following settings are in your configuration document:

This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Permission Elements (PlayBook and BlackBerry 10+)
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Properties

readonly Number | MediaError.MEDIA_ERR_ABORTED | MEDIA_ERR_NETWORK | MediaError.MEDIA_ERR_DECODE | MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED code


The code attribute of a MediaError object must return the code for the error


Supported Platforms
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

Constants

static Number MEDIA_ERR_ABORTED


The fetching process for the media resource was aborted by the user agent at the user's request.


Supported Platforms
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

static Number MEDIA_ERR_NETWORK


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


Supported Platforms
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

static Number MEDIA_ERR_DECODE


An error of some description occurred while decoding the media resource, after the resource was established to be usable.


Supported Platforms
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

static Number MEDIA_ERR_SRC_NOT_SUPPORTED


The media resource indicated by the src attribute was not suitable.


Supported Platforms
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:40 GMT-0500 (EST)