AgoraMediaPlayerState Constants Reference
Declared in | AgoraMediaPlayerKit.h |
---|
AgoraMediaPlayerState
AgoraMediaPlayerState,播放器的状态
Definition
typedef NS_ENUM(NSInteger, AgoraMediaPlayerState ) {
AgoraMediaPlayerStateIdle = 0,
AgoraMediaPlayerStateOpening = 1,
AgoraMediaPlayerStateOpenCompleted = 2,
AgoraMediaPlayerStatePlaying = 3,
AgoraMediaPlayerStatePaused = 4,
AgoraMediaPlayerStatePlayBackCompleted = 5,
AgoraMediaPlayerStatePlayBackAllLoopsCompleted = 6,
AgoraMediaPlayerStateStopped = 7,
AgoraMediaPlayerStateFailed = 100,
};
Constants
AgoraMediaPlayerStateIdle
-
0
: 默认状态。播放器会在你打开媒体文件之前和结束播放之后返回该状态码。Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStateOpening
-
1
: 正在打开媒体文件Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStateOpenCompleted
-
2
: 成功打开媒体文件Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStatePlaying
-
3
: 正在播放Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStatePaused
-
4
: 暂停播放Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStatePlayBackCompleted
-
5
: 播放完毕Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStatePlayBackAllLoopsCompleted
-
6
: 循环播放已结束Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStateStopped
-
7
: 播放结束。Declared In
AgoraMediaPlayerKit.h
. AgoraMediaPlayerStateFailed
-
100
: 播放失败Declared In
AgoraMediaPlayerKit.h
.
Declared In
AgoraMediaPlayerKit.h