Example usage for Java org.apache.cordova AudioPlayer fields, constructors, methods, implement or subclass
The text is from its open source code.
void | destroy() Destroy player and stop audio playing or recording. |
long | getCurrentPosition() Get current position of playback. |
float | getDuration(String file) Get the duration of the audio file. |
int | getState() Get the audio state. |
void | pausePlaying() Pause playing. |
void | seekToPlaying(int milliseconds) Seek or jump to a new time in the track. |
void | setVolume(float volume) Set the volume for audio player |
void | startPlaying(String file) Start or resume playing audio file. |
void | startRecording(String file) Start recording the specified file. |
void | stopPlaying() Stop playing the audio file. |
void | stopRecording() Stop recording and save to the file specified when recording started. |