public class AudioPlayManager
extends java.lang.Object
implements android.hardware.SensorEventListener
Modifier and Type | Method and Description |
---|---|
static AudioPlayManager |
getInstance() |
android.net.Uri |
getPlayingUri() |
boolean |
isInNormalMode(android.content.Context context)
检查AudioPlayManager是否处于通道正常的状态。
|
boolean |
isInVOIPMode(android.content.Context context) |
boolean |
isPlaying() |
void |
onAccuracyChanged(android.hardware.Sensor sensor,
int accuracy) |
void |
onSensorChanged(android.hardware.SensorEvent event) |
void |
setInVoipMode(boolean isVOIPMode) |
void |
setPlayListener(IAudioPlayListener listener) |
void |
startPlay(android.content.Context context,
android.net.Uri audioUri,
IAudioPlayListener playListener) |
void |
stopPlay() |
public static AudioPlayManager getInstance()
public void onSensorChanged(android.hardware.SensorEvent event)
onSensorChanged
in interface android.hardware.SensorEventListener
public void onAccuracyChanged(android.hardware.Sensor sensor, int accuracy)
onAccuracyChanged
in interface android.hardware.SensorEventListener
public void startPlay(android.content.Context context, android.net.Uri audioUri, IAudioPlayListener playListener)
public void setPlayListener(IAudioPlayListener listener)
public void stopPlay()
public android.net.Uri getPlayingUri()
public boolean isInNormalMode(android.content.Context context)
context
- 上下文public boolean isInVOIPMode(android.content.Context context)
public void setInVoipMode(boolean isVOIPMode)
public boolean isPlaying()