IMP(低代码音视频工厂)SDK v1.5.0
IMP SDK API Reference Manual for iOS Platforms
AIRBLivePusherProtocol.h
1//
2// AIRBLivePusherProtocol.h
3// AliInteractiveRoomBundle
4//
5// Created by fernando on 2021/6/22.
6// Copyright © 2021 AliYun. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
11
12#import <AliInteractiveRoomBundle/AIRBCommonDefines.h>
13
14NS_ASSUME_NONNULL_BEGIN
15
17@class AIRBLivePusherFaceBeautyOptions;
19
20@protocol AIRBLivePusherDelegate <NSObject>
21- (void) onAIRBLivePuhserEvent:(AIRBLivePusherEvent)event info:(NSDictionary*)info;
22- (void) onAIRBLivePusherError:(AIRBErrorCode)errorCode message:(NSString*)errorMessage;
23@end
24
25@protocol AIRBLivePusherProtocol <NSObject>
26
30@property (weak, nonatomic) id<AIRBLivePusherDelegate> delegate;
31
35@property (strong, nonatomic) AIRBLivePusherOptions* options;
36
40@property (strong, nonatomic) UIView* pusherView;
41
45@property (assign, nonatomic) AIRBVideoViewContentMode contentMode;
46
50@property (strong, nonatomic) UIViewController* beautyViewController;
51
56- (void) startLocalPreviewWithOptions:(AIRBLivePusherOptions*)options;
57
61- (void) startLiveStreaming;
62
67
71- (void) pauseLiveStreaming;
72
76- (void) resumeLiveStreaming;
77
82- (void) stopLiveStreaming:(BOOL)stopLive;
83
88- (void) stopLiveStreaming;
89
93- (void) toggleCamera;
94
98- (void) toggleMuted;
99
103- (void) setPreviewMirror:(BOOL)mirror;
104
108- (void) setStreamingVideoMirror:(BOOL)mirror;
109
113- (void) toggleFaceBeauty;
114
118- (void) updateLiveBusinessOptions:(AIRBLivePusherLiveBusinessOptions*) businessOptions
119 onSuccess:(void (^)(void))onSuccess
120 onFailure:(void (^)(NSString* errorMessage))onFailure;
121
122@end
123
124NS_ASSUME_NONNULL_END
Definition: AIRBLivePusherOptions.h:17
Definition: AIRBLivePusherOptions.h:109
Definition: AIRBLivePusherProtocol.h:20
Definition: AIRBLivePusherProtocol.h:25
AIRBLivePusherOptions * options
Definition: AIRBLivePusherProtocol.h:35
id< AIRBLivePusherDelegate > delegate
Definition: AIRBLivePusherProtocol.h:30
AIRBVideoViewContentMode contentMode
Definition: AIRBLivePusherProtocol.h:45
UIView * pusherView
Definition: AIRBLivePusherProtocol.h:40
UIViewController * beautyViewController
Definition: AIRBLivePusherProtocol.h:50