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

View Supported Platform Table

APIOS 5.0OS 6.0OS 7.0PlayBookRipple
code   Y Y Y 
MEDIA_ERR_ABORTED   Y Y Y 
MEDIA_ERR_NETWORK   Y Y Y 
MEDIA_ERR_DECODE   Y Y Y 
MEDIA_ERR_SRC_NOT_SUPPORTED   Y Y Y 

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 Only)
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Properties:


Property Type Description Supported Platform(s)
code Number | MediaError.MEDIA_ERR_ABORTED | MEDIA_ERR_NETWORK | MediaError.MEDIA_ERR_DECODE | MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED
readonly
The code attribute of a MediaError object must return the code for the error
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook

Constants:


Property Type Description Supported Platform(s)
MEDIA_ERR_ABORTED Number The fetching process for the media resource was aborted by the user agent at the user's request.
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook
MEDIA_ERR_NETWORK Number A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook
MEDIA_ERR_DECODE Number An error of some description occurred while decoding the media resource, after the resource was established to be usable.
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook
MEDIA_ERR_SRC_NOT_SUPPORTED Number The media resource indicated by the src attribute was not suitable.
 - BlackBerry OS 6.0+
 - BlackBerry PlayBook

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