QCPlayerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | QCPlayer.h |
– changePlayerState:
required method
播放器的视频状态发生了改变
- (void)changePlayerState:(QCPlayerState)state
Parameters
state |
当前播放器状态 |
---|
Declared In
QCPlayer.h
– changeLoadProgress:second:
required method
播放器缓冲进度发生了改变
- (void)changeLoadProgress:(double)progress second:(CGFloat)second
Parameters
progress |
已缓冲的视频进度,取值范围:0-1 |
---|---|
second |
已缓冲的视频秒数 |
Declared In
QCPlayer.h
– didBuffer:
required method
缓冲到新的视频片段时会调用该代理
- (void)didBuffer:(QCPlayer *)playerMgr
Parameters
playerMgr |
当前播放器 |
---|
Declared In
QCPlayer.h
– playerReadyToPlay
required method
播放器初始化完成,进入预播放状态,可以开始播放视频
- (void)playerReadyToPlay
Declared In
QCPlayer.h