QCBasicMediaControlProtocol Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | QCBasicMediaControlProtocol.h |
– seekTo:
required method
声明方法,指定播放时间
- (void)seekTo:(CGFloat)second
Parameters
second |
视频定位的新位置时间点,单位毫秒 |
---|
Declared In
QCBasicMediaControlProtocol.h
– getDuration
required method
声明方法,获取视频总时间长度,单位毫秒
- (NSInteger)getDuration
Declared In
QCBasicMediaControlProtocol.h
– getCurrentPosition
required method
声明方法,获取当前视频已播放进度的百分比
- (float)getCurrentPosition
Declared In
QCBasicMediaControlProtocol.h
– isPlaying
required method
声明方法,获取当前视频是否正在播放
- (BOOL)isPlaying
Declared In
QCBasicMediaControlProtocol.h
– bufferPercentage
required method
声明方法,视频已缓存时间进度百分比
- (float)bufferPercentage
Declared In
QCBasicMediaControlProtocol.h
– canPause
required method
声明方法,当前视频是否可暂停
- (BOOL)canPause
Declared In
QCBasicMediaControlProtocol.h
– canSeekBackWard
required method
声明方法,以当前播放时间为标准,是否能往回指定播放时间
- (BOOL)canSeekBackWard
Declared In
QCBasicMediaControlProtocol.h
– canSeekForward
required method
声明方法,以当前播放时间为标准,是否能向前制定播放时间
- (BOOL)canSeekForward
Declared In
QCBasicMediaControlProtocol.h
– playResolutionVideoWithVideoIndex:
required method
声明方法,多分辨率视频时可用,按照索引播放指定分辨率视频
- (void)playResolutionVideoWithVideoIndex:(NSInteger)index
Parameters
index |
播放指定分辨率视频的索引 |
---|
Declared In
QCBasicMediaControlProtocol.h