Java org.apache.cordova AudioPlayer fields, constructors, methods, implement or subclass

Example usage for Java org.apache.cordova AudioPlayer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.cordova AudioPlayer.

The text is from its open source code.

Method

voiddestroy()
Destroy player and stop audio playing or recording.
longgetCurrentPosition()
Get current position of playback.
floatgetDuration(String file)
Get the duration of the audio file.
intgetState()
Get the audio state.
voidpausePlaying()
Pause playing.
voidseekToPlaying(int milliseconds)
Seek or jump to a new time in the track.
voidsetVolume(float volume)
Set the volume for audio player
voidstartPlaying(String file)
Start or resume playing audio file.
voidstartRecording(String file)
Start recording the specified file.
voidstopPlaying()
Stop playing the audio file.
voidstopRecording()
Stop recording and save to the file specified when recording started.