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 |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
code | Y | Y | Y | Y | Y | Y | |
MEDIA_ERR_ABORTED | Y | Y | Y | Y | Y | Y | |
MEDIA_ERR_NETWORK | Y | Y | Y | Y | Y | Y | |
MEDIA_ERR_DECODE | Y | Y | Y | Y | Y | Y | |
MEDIA_ERR_SRC_NOT_SUPPORTED | Y | Y | Y | 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 and BlackBerry 10+) |
---|
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Properties
Number|MediaError.MEDIA_ERR_ABORTED|MEDIA_ERR_NETWORK|MediaError.MEDIA_ERR_DECODE|MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED | code |
Constants
Number | MEDIA_ERR_ABORTED |
Number | MEDIA_ERR_NETWORK |
Number | MEDIA_ERR_DECODE |
Number | MEDIA_ERR_SRC_NOT_SUPPORTED |
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 |