9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
12#import <AliInteractiveRoomBundle/AIRBCommonDefines.h>
14NS_ASSUME_NONNULL_BEGIN
22- (void) onAIRBRTCErrorWithCode:(AIRBErrorCode)code message:(NSString*)msg;
23- (void) onAIRBRTCEvent:(AIRBRTCEvent)event info:(NSDictionary*)info;
31- (void) onAIRBRTCRemotePeerViewAvailable:(NSString*)userID view:(UIView*)view type:(AIRBRTCVideoViewType)type;
38- (void) onAIRBRTCRemotePeerVideoFirstFrameDrawn:(NSString*)userID type:(AIRBRTCVideoViewType)type;
44- (void) onAIRBRTCActiveSpeaker:(NSString*)userID;
51- (void)onAIRBRTCAudioVolumeCallback:(NSArray <
AIRBRTCUserVolumeInfo *> *_Nullable)volumeInfoArray totalVolume:(
int)totalVolume;
60- (void)onAIRBRTCNetworkQualityChanged:(NSString *_Nonnull)userID
61 upNetworkQuality:(AIRBRTCNetworkQuality)upQuality
62 downNetworkQuality:(AIRBRTCNetworkQuality)downQuality;
87@property (weak, nonatomic) id<AIRBRTCDelegate>
delegate;
107- (void) leaveChannel:(BOOL)destroy;
119- (void) addPeers:(NSArray<NSString*>*)userIDs;
125- (void) removePeers:(NSArray<NSString*>*)userIDs;
132- (void) approveJoiningApplication:(BOOL)approve fromPeer:(NSString*)userID;
138- (void) acceptCall:(BOOL)accept;
144- (void) applyForJoining:(BOOL)applyOrWithdraw;
154- (void) queryCurrentPeerListWithType:(AIRBRTCPeerType)type
155 pageNum:(int32_t)pageNum
156 pageSize:(int32_t)pageSize
158 onFailure:(
void(^)(NSString* errorMessage))onFailure;
166- (void) muteLocalMicphone:(BOOL)mute
167 onSuccess:(
void(^)(
void))onSuccess
168 onFailure:(
void(^)(NSString* errorMessage))onFailure;
177- (void) muteRemoteMicphone:(BOOL)mute remotePeer:(NSString*)userID
178 onSuccess:(
void(^)(
void))onSuccess
179 onFailure:(
void(^)(NSString* errorMessage))onFailure;
188- (void) muteAllRemoteMicphone:(BOOL)mute
189 onSuccess:(
void(^)(
void))onSuccess
190 onFailure:(
void(^)(NSString* errorMessage))onFailure;
199- (void) muteLocalCamera:(BOOL)mute
200 onSuccess:(
void(^)(
void))onSuccess
201 onFailure:(
void(^)(NSString* errorMessage))onFailure;
209- (void) setBasicFaceBeauty:(BOOL)enable
210 whiteningLevel:(
float)whiteningLevel
211 smoothnessLevel:(
float)smoothnessLevel;
219- (void) subscribeRemoteAudioStream:(BOOL)sub fromUser:(NSString*)userID;
227- (void) subscribeRemoteVideoStream:(BOOL)sub type:(AIRBRTCVideoStreamType)type fromUser:(NSString*)userID;
234- (void) subscribeRemoteScreenShareStream:(BOOL)sub fromUser:(NSString*)userID;
246- (int)startScreenShare:(NSString*)appGroup;
259- (void) startBypassLiveStreaming:(AIRBRTCBypassLiveResolutionType)resolutionType;
265- (void) stopBypassLiveStreaming:(BOOL)destroy;
274- (void) setBypassLiveLayout:(AIRBRTCBypassLiveLayoutType)type
275 userIDs:(NSArray<NSString*>* _Nonnull) userIDs
276 onSuccess:(
void(^)(
void))onSuccess
277 onFailure:(
void(^)(NSString* error))onFailure;
286 onSuccess:(
void(^)(
void))onSuccess
287 onFailure:(
void(^)(NSString* error))onFailure;
295- (void) startRecording:(AIRBRTCBypassLiveResolutionType)resolutionType
296 onSuccess:(
void(^)(
void))onSuccess
297 onFailure:(
void(^)(NSString* error))onFailure;
304- (void) pauseRecordingOnSuccess:(
void(^)(
void))onSuccess onFailure:(
void(^)(NSString* error))onFailure;
312- (void) resumeRecording:(AIRBRTCBypassLiveResolutionType)resolutionType
313 onSuccess:(
void(^)(
void))onSuccess
314 onFailure:(
void(^)(NSString* error))onFailure;
321- (void) stopRecordingOnSuccess:(
void(^)(
void))onSuccess onFailure:(
void(^)(NSString* error))onFailure;
329- (void) getRecordedVideoUrlWithConferenceID:(NSString*)conferenceID
330 onSuccess:(
void(^)(NSString* url))onSuccess
331 onFailure:(
void(^)(NSString* error))onFailure;
Definition: AIRBRTCBypassLiveLayoutPeerVideoModel.h:14
Definition: AIRBRTCConfig.h:17
Definition: AIRBRTCUserVolumeInfo.h:14
Definition: AIRBRoomChannelUserListResponse.h:16
Definition: AIRBRTCProtocol.h:21
Definition: AIRBRTCProtocol.h:65
UIView * rtcLocalView
Definition: AIRBRTCProtocol.h:70
id< AIRBRTCDelegate > delegate
Definition: AIRBRTCProtocol.h:87
BOOL videoStreamMirrorEnabled
Definition: AIRBRTCProtocol.h:82
BOOL previewMirrorEnabled
Definition: AIRBRTCProtocol.h:76