Audio
The audio object provides information about supported audio functionality on the device.
Supported Platform(s)
- BlackBerry OS 5.0+ |
- Ripple Emulator |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
blackberry.audio.supportedContentTypes | Y | Y | Y | Y | |||
blackberry.audio.supportedProtocols | 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: |
You must declare the feature element(s) below in your configuration document: |
Feature ID | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
<feature id="blackberry.audio" /> | Y | Y | Y | Y | |||
<feature id="blackberry.audio.Player" /> | Y | Y | Y | Y |
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. |
Functions
String[] | blackberry.audio.supportedContentTypes |
String[] | blackberry.audio.supportedProtocols |
Functions
static
String[]
blackberry.audio.supportedContentTypes
(protocol : String)
Request the list of supported content types for a specified protocol.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- Ripple Emulator |
Parameters | |
---|---|
protocol | The input protocol for the supported content types. |
Return:
The list of supported content types for the protocol provided
Code Example:
|
static
String[]
blackberry.audio.supportedProtocols
(content_type : String)
Request the list of supported protocols for a specified content type.
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- Ripple Emulator |
Parameters | |
---|---|
content_type | The content type for the supported protocols. |
Return:
The list of supported protocols for the content type provided
Code Example:
|
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:31 GMT-0500 (EST)