public class AudioPlayer
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
AudioPlayer.Callback |
限定符和类型 | 方法和说明 |
---|---|
int |
getDuration() |
static AudioPlayer |
getInstance() |
java.lang.String |
getPath() |
boolean |
isPlaying() |
void |
startPlay(java.lang.String filePath,
AudioPlayer.Callback callback) |
void |
startRecord(AudioPlayer.Callback callback) |
void |
stopPlay() |
void |
stopRecord() |
public static AudioPlayer getInstance()
public void startRecord(AudioPlayer.Callback callback)
public void stopRecord()
public void startPlay(java.lang.String filePath, AudioPlayer.Callback callback)
public void stopPlay()
public boolean isPlaying()
public java.lang.String getPath()
public int getDuration()