IMP(低代码音视频工厂)SDK v1.5.0
IMP SDK API Reference Manual for iOS Platforms
<AIRBVodPlayerProtocol> Protocol Reference
Inheritance diagram for <AIRBVodPlayerProtocol>:

Instance Methods

(void) - prepareWithMediaURL:
 
(void) - prepareWithLiveID:statistic:
 
(void) - pause
 
(void) - play
 
(void) - stop
 
(void) - seekToTime:
 
(void) - snapshotAsync
 ‍** More...
 
(void) - toggleMuted
 

Properties

id< AIRBVodPlayerDelegatedelegate
 
UIView * playerView
 
AIRBVideoViewContentMode contentMode
 
BOOL autoPlay
 
UIView * playerControlView
 
BOOL tapGestureRecognizerEnabled
 
BOOL twiceTapGestureRecognizerEnabled
 
BOOL showControlBar
 
UISlider * progressSliderInControlBar
 
float playerVolume
 
float playerRate
 

Method Documentation

◆ pause

- (void) pause

暂停播放

◆ play

- (void) play

播放

◆ prepareWithLiveID:statistic:

- (void) prepareWithLiveID: (NSString *)  liveID
statistic: (BOOL)  statistic 

准备播放直播回放

Parameters
liveID回放所对应的直播ID
statistic是否开启直播回放播放的时长统计

◆ prepareWithMediaURL:

- (void) prepareWithMediaURL: (NSString *)  mediaURL

准备播放器

Parameters
mediaURL视频URL

◆ seekToTime:

- (void) seekToTime: (int64_t)  time

跳转到指定的播放位置

Parameters
time新的播放位置,单位毫秒

◆ snapshotAsync

- (void) snapshotAsync

‍**

‍** 异步截取当前视频画面,通过delegate返回一个UIImage,具体见onAIRBVodPlayerImageSnapshot

◆ stop

- (void) stop

停止播放(不可再恢复)

◆ toggleMuted

- (void) toggleMuted

切换是否静音

Property Documentation

◆ autoPlay

- (BOOL) autoPlay
readwritenonatomicassign

设置是否自动播放,默认为ture

◆ contentMode

- (AIRBVideoViewContentMode) contentMode
readwritenonatomicassign

播放器画面view的展开模式,默认AIRBVideoViewContentModeAspectFit

◆ delegate

- (id<AIRBVodPlayerDelegate>) delegate
readwritenonatomicweak

用来接收事件和错误通知

◆ playerControlView

- (UIView*) playerControlView
readwritenonatomicstrong

播放器的控制view 包括控制条和手势识别

◆ playerRate

- (float) playerRate
readwritenonatomicassign

播放速率,0.5-2.0之间,1为正常播放

◆ playerView

- (UIView*) playerView
readwritenonatomicstrong

播放器的画面view

◆ playerVolume

- (float) playerVolume
readwritenonatomicassign

播放的音量,范围0.0~2.0,当音量大于1.0时,可能出现噪音,不推荐使用

◆ progressSliderInControlBar

- (UISlider*) progressSliderInControlBar
readwritenonatomicstrong

进度条 方便定制颜色等效果

◆ showControlBar

- (BOOL) showControlBar
readwritenonatomicassign

是否显示播放器控制条 默认为是

◆ tapGestureRecognizerEnabled

- (BOOL) tapGestureRecognizerEnabled
readwritenonatomicassign

是否开启单击手势识别 默认为是,控制隐藏/显示控制条

◆ twiceTapGestureRecognizerEnabled

- (BOOL) twiceTapGestureRecognizerEnabled
readwritenonatomicassign

是否开启双击手势识别 默认为是,控制暂停/播放


The documentation for this protocol was generated from the following file: