Agora RTC Objective-C API Reference  Refactor
AgoraRtcEngineKitEx.h
Go to the documentation of this file.
1 //
2 // AgoraRtcEngineKitEx.h
3 // AgoraRtcEngineKit
4 //
5 // Copyright (c) 2020 Agora. All rights reserved.
6 // Created by LLF on 2020/3/9.
7 //
8 
9 #import "AgoraRtcEngineKit.h"
10 #import "AgoraObjects.h"
11 
12 #if TARGET_OS_IPHONE
13 #import <UIKit/UIKit.h>
14 #elif TARGET_OS_MAC
15 #import <AppKit/AppKit.h>
16 #endif
17 
18 NS_ASSUME_NONNULL_BEGIN
20 
82 - (int)joinChannelExByToken:(NSString* _Nullable)token
83  channelId:(NSString* _Nonnull)channelId
84  uid:(NSUInteger)uid
85  connectionId:(unsigned int *)connectionId
86  delegate:(id<AgoraRtcEngineDelegate> _Nullable)delegate
87  mediaOptions:(AgoraRtcChannelMediaOptions* _Nonnull)mediaOptions
88  joinSuccess:(void(^ _Nullable)(NSString* _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock;
89 
99 - (int)updateChannelExWithMediaOptions:(AgoraRtcChannelMediaOptions* _Nonnull)mediaOptions
100  connectionId:(unsigned int)connectionId;
101 
129 - (int)leaveChannelEx:(NSString* _Nonnull)channelId
130  connectionId:(unsigned int)connectionId
131  leaveChannelBlock:(void(^ _Nullable)(AgoraChannelStats* _Nonnull stat))leaveChannelBlock;
132 
145 - (int)muteRemoteAudioStreamEx:(NSUInteger)uid
146  mute:(BOOL)mute
147  connectionId:(unsigned int)connectionId;
148 
166 - (int)setVideoEncoderConfigurationEx:(AgoraVideoEncoderConfiguration* _Nonnull)config
167  connectionId:(unsigned int)connectionId;
168 
179 - (int)setupRemoteVideoEx:(AgoraRtcVideoCanvas* _Nonnull)remote
180  connectionId:(unsigned int)connectionId;
181 
191 - (int)setRemoteRenderModeEx:(NSUInteger)uid
192  mode:(AgoraVideoRenderMode)mode
193  connectionId:(unsigned int)connectionId;
194 
211 - (int)muteRemoteVideoStreamEx:(NSUInteger)uid
212  mute:(BOOL)mute
213  connectionId:(unsigned int)connectionId;
214 
225 - (int)pushExternalAudioFrameExRawData:(void * _Nonnull)data
226  sourceId:(NSInteger)sourceId
227  timestamp:(NSTimeInterval)timestamp
228  connectionId:(unsigned int)connectionId;
229 
239 - (int)pushExternalAudioFrameExSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer
240  connectionId:(unsigned int)connectionId;
259 - (BOOL)pushExternalVideoFrame:(AgoraVideoFrame * _Nonnull)frame connectionId:(unsigned int)connectionId;
260 
261 - (int)sendCustomReportMessageEx:(NSString * _Nullable)messageId
262  category:(NSString * _Nullable)category
263  event:(NSString * _Nullable)event
264  label:(NSString * _Nullable)label
265  value:(NSInteger)value
266  connectionId:(unsigned int)connectionId;
267 
268 @end
269 
270 NS_ASSUME_NONNULL_END
AgoraRtcEngineDelegate-p
Definition: AgoraRtcEngineKit.h:79
AgoraRtcChannelMediaOptions
Definition: AgoraObjects.h:26
AgoraVideoFrame
Definition: AgoraObjects.h:915
AgoraRtcEngineKit.h
AgoraVideoRenderMode
AgoraVideoRenderMode
Definition: AgoraEnumerates.h:634
AgoraRtcEngineKit(Ex)
Definition: AgoraRtcEngineKitEx.h:19
AgoraObjects.h
AgoraRtcVideoCanvas
Definition: AgoraObjects.h:125
AgoraChannelStats
Definition: AgoraObjects.h:415