13 #import <UIKit/UIKit.h>
15 #import <AppKit/AppKit.h>
18 NS_ASSUME_NONNULL_BEGIN
42 - (int)joinChannelExByToken:(NSString* _Nullable)token
46 joinSuccess:(
void(^ _Nullable)(NSString* _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannelEx(byToken:connection:delegate:mediaOptions:joinSuccess:));
83 - (int)joinChannelExByToken:(NSString* _Nullable)token
84 channelId:(NSString* _Nonnull)channelId
85 userAccount:(NSString* _Nonnull)userAccount
88 joinSuccess:(
void(^ _Nullable)(NSString* _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannelEx(byToken:channelId:userAccount:delegate:mediaOptions:joinSuccess:));
100 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(updateChannelEx(with:connection:));
112 leaveChannelBlock:(
void(^ _Nullable)(
AgoraChannelStats* _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannelEx(_:leaveChannelBlock:));
138 - (int)muteLocalAudioStreamEx:(BOOL)mute connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteLocalAudioStreamEx(_:connection:));
152 - (int)muteLocalVideoStreamEx:(BOOL)mute connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteLocalVideoStreamEx(_:connection:));
166 leaveChannelBlock:(
void(^ _Nullable)(
AgoraChannelStats* _Nonnull stat))leaveChannelBlock;
180 - (int)muteRemoteAudioStreamEx:(NSUInteger)uid
182 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteRemoteAudioStreamEx(_:mute:connection:));
197 - (int)muteAllRemoteAudioStreamsEx:(BOOL)mute
198 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteAllRemoteAudioStreamsEx(_:connection:));
217 - (int)setVideoEncoderConfigurationEx:(AgoraVideoEncoderConfiguration* _Nonnull)config
218 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setVideoEncoderConfigurationEx(_:connection:));
233 - (int)setRemoteRenderRotationEx:(NSUInteger)uid
235 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteRenderRotationEx(_:rotation:connection:));
248 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setupRemoteVideoEx(_:connection:));
261 - (int)setRemoteRenderModeEx:(NSUInteger)uid
263 mirror:(AgoraVideoMirrorMode)mirror
264 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteRenderModeEx(_:mode:mirror:connection:));
282 - (int)muteRemoteVideoStreamEx:(NSUInteger)uid
284 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteRemoteVideoStreamEx(_:mute:connection:));
299 - (int)muteAllRemoteVideoStreamsEx:(BOOL)mute
300 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteAllRemoteVideoStreamsEx(_:connection:));
317 - (int)enableDualStreamModeEx:(BOOL)enabled
319 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(enableDualStreamModeEx(_:streamConfig:connection:)) __deprecated_msg("use setDualStreamModeEx: instead.");
334 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(setDualStreamModeEx(_:streamConfig:connection:));
357 - (int)setRemoteVideoStreamEx:(NSUInteger)uid
359 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteVideoStreamEx(_:type:connection:));
371 - (int)setRemoteVideoSubscriptionOptionsEx:(NSUInteger)uid
373 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(setRemoteVideoSubscriptionOptionsEx(_:options:connection:));
389 - (int)pushExternalEncodedVideoFrameEx:(NSData* _Nonnull)frame
391 videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalEncodedVideoFrameEx(_:info:videoTrackId:));
411 - (BOOL)pushExternalVideoFrame:(
AgoraVideoFrame * _Nonnull)frame videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalVideoFrame(_:videoTrackId:));
423 - (
AgoraUserInfo* _Nullable)getUserInfoByUserAccountEx:(NSString* _Nonnull)userAccount
425 withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUserAccountEx:connection:withError:));
439 - (
AgoraUserInfo* _Nullable)getUserInfoByUidEx:(NSUInteger)uid
441 withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUidEx:connection:withError:));
452 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
473 - (int)enableLoopbackRecordingEx:(BOOL)enabled
474 deviceName:(NSString* _Nullable)deviceName
475 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(enableLoopbackRecordingEx(_:deviceName:connection:));
492 - (int)adjustRecordingSignalVolumeEx:(NSInteger)volume
508 - (int)muteRecordingSignalEx:(BOOL)mute
533 - (int)adjustUserPlaybackSignalVolumeEx:(NSUInteger)uid
534 volume:(NSInteger)volume
537 - (int)sendCustomReportMessageEx:(NSString * _Nullable)messageId
538 category:(NSString * _Nullable)category
539 event:(NSString * _Nullable)event
540 label:(NSString * _Nullable)label
541 value:(NSInteger)value
542 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(sendCustomReportMessageEx(_:category:event:label:value:connection:));
544 - (int)enableAudioVolumeIndicationEx:(NSInteger)interval
545 smooth:(NSInteger)smooth
546 reportVad:(BOOL)reportVad
547 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(enableAudioVolumeIndicationEx(_:smooth:reportVad:connection:));
573 - (int)setRemoteVoicePositionEx:(NSUInteger)uid
576 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteVoicePositionEx(_:pan:gain:connection:));
594 - (int)setRemoteUserSpatialAudioParamsEx:(NSUInteger)uid
595 params:(AgoraSpatialAudioParams* _Nonnull)params
596 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(setRemoteUserSpatialAudioParamsEx(_:params:connection:));
624 - (int)addVideoWatermarkEx:(NSURL* _Nonnull)url options:(
WatermarkOptions* _Nonnull)options connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(addVideoWatermarkEx(_:options:connection:));
632 - (int)clearVideoWatermarkEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(clearVideoWatermarkEx(_:));
658 - (int)createDataStreamEx:(NSInteger * _Nonnull)streamId
659 reliable:(BOOL)reliable
660 ordered:(BOOL)ordered
661 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(createDataStreamEx(_:reliable:ordered:connection:));
672 - (int)createDataStreamEx:(NSInteger * _Nonnull)streamId
674 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(createDataStreamEx(_:config:connection:));
700 - (int)sendStreamMessageEx:(NSInteger)streamId
701 data:(NSData * _Nonnull)data
702 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(sendStreamMessageEx(_:data:connection:));
721 - (int)setHighPriorityUserListEx:(NSArray <NSNumber *> *_Nullable)uidList
722 option:(AgoraStreamFallbackOptions)option
743 - (int)setSubscribeAudioBlocklistEx:(NSArray <NSNumber *> *_Nonnull)blocklist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeAudioBlocklistEx(_:connection:));
760 - (int)setSubscribeAudioAllowlistEx:(NSArray <NSNumber *> *_Nonnull)allowlist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeAudioAllowlistEx(_:connection:));
775 - (int)setSubscribeVideoBlocklistEx:(NSArray <NSNumber *> *_Nonnull)blocklist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeVideoBlocklistEx(_:connection:));
792 - (int)setSubscribeVideoAllowlistEx:(NSArray <NSNumber *> *_Nonnull)allowlist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeVideoAllowlistEx(_:connection:));
794 - (NSInteger)takeSnapshotEx:(
AgoraRtcConnection * _Nonnull)connection uid:(NSInteger)uid filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(takeSnapshotEx(_:uid:filePath:));
817 - (int)startRtmpStreamWithoutTranscodingEx:(NSString* _Nonnull)url
818 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startRtmpStreamWithoutTranscodingEx(_:connection:));
830 - (int)startRtmpStreamWithTranscodingEx:(NSString* _Nonnull)url
831 transcoding:(AgoraLiveTranscoding* _Nullable)transcoding
832 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startRtmpStreamWithTranscodingEx(_:transcoding:connection:));
844 - (int)updateRtmpTranscodingEx:(AgoraLiveTranscoding* _Nullable)transcoding
845 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(updateRtmpTranscodingEx(_:connection:));
854 - (int)stopRtmpStreamEx:(NSString* _Nonnull)url
855 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(stopRtmpStreamEx(_:connection:));
885 - (int)startChannelMediaRelayEx:(
AgoraChannelMediaRelayConfiguration * _Nonnull)config connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startChannelMediaRelayEx(_:connection:)) __deprecated_msg("use startOrUpdateChannelMediaRelayEx instead.");
899 - (int)updateChannelMediaRelayEx:(
AgoraChannelMediaRelayConfiguration * _Nonnull)config connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(updateChannelMediaRelayEx(_:connection:)) __deprecated_msg("use startOrUpdateChannelMediaRelayEx instead.");
915 - (int)stopChannelMediaRelayEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(stopChannelMediaRelayEx(_:));
928 - (int)pauseAllChannelMediaRelayEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(pauseAllChannelMediaRelayEx(_:));
941 - (int)resumeAllChannelMediaRelayEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(resumeAllChannelMediaRelayEx(_:));
959 - (int)startMediaRenderingTracingEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startMediaRenderingTracingEx(_:));
991 - (int)enableEncryptionEx:(
bool)enabled encryptionConfig:(
AgoraEncryptionConfig *_Nonnull)config connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(enableEncryptionEx(_:encryptionConfig:connection:));
1020 - (NSString * _Nullable)getCallIdEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(getCallIdEx(_:));
1023 NS_ASSUME_NONNULL_END