toggle menu
Android-IMKit-SDK
5.12.0
io.rong.imkit
switch theme
search in API
Android-IMKit-SDK
/
io.rong.imkit.manager
/
AudioPlayManager
Audio
Play
Manager
public
class
AudioPlayManager
Members
Functions
get
Instance
Link copied to clipboard
public
static
AudioPlayManager
getInstance
(
)
get
Playing
Uri
Link copied to clipboard
public
Uri
getPlayingUri
(
)
is
In
Normal
Mode
Link copied to clipboard
public
boolean
isInNormalMode
(
Context context
)
检查AudioPlayManager是否处于通道正常的状态。
is
In
VOIPMode
Link copied to clipboard
public
boolean
isInVOIPMode
(
Context context
)
is
Playing
Link copied to clipboard
public
boolean
isPlaying
(
)
on
Accuracy
Changed
Link copied to clipboard
public
void
onAccuracyChanged
(
Sensor sensor
,
int accuracy
)
on
Sensor
Changed
Link copied to clipboard
public
void
onSensorChanged
(
SensorEvent event
)
set
In
Voip
Mode
Link copied to clipboard
public
void
setInVoipMode
(
boolean isVOIPMode
)
set
Play
Listener
Link copied to clipboard
public
void
setPlayListener
(
IAudioPlayListener listener
)
start
Play
Link copied to clipboard
public
void
startPlay
(
Context context
,
Uri audioUri
,
IAudioPlayListener playListener
)
stop
Play
Link copied to clipboard
public
void
stopPlay
(
)