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

Instance Methods

(void) - startLocalPreviewWithOptions:
 
(void) - startLiveStreaming
 
(void) - restartLiveStreaming
 
(void) - pauseLiveStreaming
 
(void) - resumeLiveStreaming
 
(void) - stopLiveStreaming:
 
(void) - stopLiveStreaming
 
(void) - toggleCamera
 
(void) - toggleMuted
 
(void) - setPreviewMirror:
 
(void) - setStreamingVideoMirror:
 
(void) - toggleFaceBeauty
 
(void) - updateLiveBusinessOptions:onSuccess:onFailure:
 

Properties

id< AIRBLivePusherDelegatedelegate
 
AIRBLivePusherOptionsoptions
 
UIView * pusherView
 
AIRBVideoViewContentMode contentMode
 
UIViewController * beautyViewController
 

Method Documentation

◆ pauseLiveStreaming

- (void) pauseLiveStreaming

暂停直播推流

◆ restartLiveStreaming

- (void) restartLiveStreaming

重新开始直播推流,适用于断网后恢复重推

◆ resumeLiveStreaming

- (void) resumeLiveStreaming

从暂停状态下恢复直播推流

◆ setPreviewMirror:

- (void) setPreviewMirror: (BOOL)  mirror

是否开启摄像头预览画面的镜像

◆ setStreamingVideoMirror:

- (void) setStreamingVideoMirror: (BOOL)  mirror

是否开启视频流的画面镜像

◆ startLiveStreaming

- (void) startLiveStreaming

开始直播推流

◆ startLocalPreviewWithOptions:

- (void) startLocalPreviewWithOptions: (AIRBLivePusherOptions *)  options

根据配置,打开推流预览画面

Parameters
options推流相关的配置

◆ stopLiveStreaming

- (void) stopLiveStreaming

停止直播推流并结束直播

Note
等同于stopLiveStreaming:YES

◆ stopLiveStreaming:

- (void) stopLiveStreaming: (BOOL)  stopLive

停止直播推流

Parameters
stopLiveYES表示结束直播,NO表示只停止推流不结束直播

◆ toggleCamera

- (void) toggleCamera

切换前后摄像头,默认使用前置摄像头

◆ toggleFaceBeauty

- (void) toggleFaceBeauty

动态打开或者关闭美颜

◆ toggleMuted

- (void) toggleMuted

切换推流是否静音(静音后观众侧侧听不到主播侧的声音)

◆ updateLiveBusinessOptions:onSuccess:onFailure:

- (void) updateLiveBusinessOptions: (AIRBLivePusherLiveBusinessOptions *)  businessOptions
onSuccess: (void(^)(void))  onSuccess
onFailure: (void(^)(NSString *errorMessage))  onFailure 

动态更新直播业务信息,具体见AIRBLivePusherLiveBusinessOptions

Property Documentation

◆ beautyViewController

- (UIViewController*) beautyViewController
readwritenonatomicstrong

美颜面板,已经实现完毕,外部只需present即可,建议size为CGSizeMake(屏幕宽度,200);

◆ contentMode

- (AIRBVideoViewContentMode) contentMode
readwritenonatomicassign

推流时的相机画面预览view的拉伸模式,具体见AIRBVideoViewContentMode,默认为AIRBVideoViewContentModeAspectFill

◆ delegate

- (id<AIRBLivePusherDelegate>) delegate
readwritenonatomicweak

用来接收推流相关的事件和错误

◆ options

- (AIRBLivePusherOptions*) options
readwritenonatomicstrong

推流相关的配置,视频默认分辨率720P,具体见AIRBLivePusherOptions的字段说明

◆ pusherView

- (UIView*) pusherView
readwritenonatomicstrong

推流时的相机画面预览view


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