Supported audio Functions
|
API |
Description |
Returns |
Parameters |
|
|
|
Record audio based on provided options |
Array of MediaFile object or null based on whether callback function is provided or not |
options (Audio Options, callBack) | |
|
|
Create media object for playback |
Media Object |
src fullpath of media file
statusCallback function to get Media Playback status events |
|
|
|
Get current position for given media object |
position (Number) |
Media Object |
|
|
|
Start or resume given audio file |
Media object |
fullpath or Media Object |
|
|
|
Pause given audio file |
void |
Media Object |
|
|
|
Release underlying audio resources |
void |
Media Object |
|
|
|
Set current position within audio file |
void |
Media Object duration in milliseconds |
|
|
|
Stop playing given audio file |
void |
Media Object |
|
|
|
Record to file |
void |
Media Object |
|
|
|
Stop recording to given audio file |
void |
Media Object |
Recording audio
<!--- using callback function ---> |
Note: The duration parameter of audio options is not supported on Android. The Mode parameter is not supported on both platforms.
Playing audio
<!--- playing file from a given source ---> |