静态 Public 成员函数 | |
---|---|
static int | getValue (MediaPlayerState type) |
Public 属性 | |
---|---|
PLAYER_STATE_IDLE =(0) | |
PLAYER_STATE_OPENING =(1) | |
PLAYER_STATE_OPEN_COMPLETED =(2) | |
PLAYER_STATE_PLAYING =(3) | |
PLAYER_STATE_PAUSED =(4) | |
PLAYER_STATE_PLAYBACK_COMPLETED =(5) | |
PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED =(6) | |
PLAYER_STATE_FAILED =(100) |
Private 成员函数 | |
---|---|
MediaPlayerState (int v) |
Private 属性 | |
---|---|
int | value |
详细描述
MediaPlayerState,播放器的状态
类成员变量说明
PLAYER_STATE_IDLE
0
: 默认状态。播放器会在你打开媒体文件之前和结束播放之后返回该状态码。
PLAYER_STATE_OPENING
org.ar.rtc.mediaplayer.PlayerConstans.MediaPlayerState.PLAYER_STATE_IDLE =(0)
1
: 正在打开媒体文件
PLAYER_STATE_OPEN_COMPLETED
org.ar.rtc.mediaplayer.PlayerConstans.MediaPlayerState.PLAYER_STATE_OPENING =(1)
2
: 成功打开媒体文件
PLAYER_STATE_PLAYING
org.ar.rtc.mediaplayer.PlayerConstans.MediaPlayerState.PLAYER_STATE_OPEN_COMPLETED =(2)
3
: 正在播放
PLAYER_STATE_PAUSED
org.ar.rtc.mediaplayer.PlayerConstans.MediaPlayerState.PLAYER_STATE_PLAYING =(3)
4
: 暂停播放
PLAYER_STATE_PLAYBACK_COMPLETED
org.ar.rtc.mediaplayer.PlayerConstans.MediaPlayerState.PLAYER_STATE_PAUSED =(4)
5
: 播放完毕
PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED
org.ar.rtc.mediaplayer.PlayerConstans.MediaPlayerState.PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED =(6)
6
:循环播放已结束
PLAYER_STATE_FAILED
org.ar.rtc.mediaplayer.PlayerConstans.MediaPlayerState.PLAYER_STATE_FAILED =(100)
100
: 播放失败