Agora.io Live Streaming for iOS Agora.io Live Streaming for iOS | Page 4
info:(NSString * _Nullable)info
uid:(NSUInteger)uid
joinSuccess:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger
elapsed))joinSuccessBlock;
Users in the same channel can talk to each other; and multiple users in the same channel can start a
group chat. Users using different App IDs cannot call each other.
Once in a call, the user must call the leaveChannel method to exit the current call before entering
another channel. This method is called asynchronously; therefore, it can be called in the main user
interface thread.
Leave a Channel (leaveChannel)
(int)leaveChannel:(void(^ _Nullable)(AgoraChannelStats * _Nonnull stat))leaveChannelBlock;
This method allows a user to leave a channel, such as hanging up or exiting a call. After joining a
channel, the user must call the leaveChannel method to end the call before joining another one.
Enable the Video Mode (enableVideo)
(int)enableVideo;
Disable the Video Mode (disableVideo)
(int)disableVideo;
Enable the Local Video (enableLocalVideo)
(int)enableLocalVideo:(BOOL)enabled;
Set the Local Video View (setupLocalVideo)
(int)setupLocalVideo:(AgoraRtcVideoCanvas * _Nullable)local;
Set the Remote Video View (setupRemoteVideo)
(int)setupRemoteVideo:(AgoraRtcVideoCanvas * _Nonnull)remote;
Interactive Broadcasting
Basic Methods :- AgoraRtcEngineKit is the basic interface class of Agora Native SDK. Creating an
AgoraRtcEngineKit object and then calling the methods of this object enables the use of Agora Native
SDK’s communication functionality.
Initialize (sharedEngineWithAppId)
(instancetype _Nonnull)sharedEngineWithAppId:(NSString * _Nonnull)appId
delegate:(id _Nullable)delegate;
Set the Channel Profile (setChannelProfile)
(int)setChannelProfile:(AgoraChannelProfile)profile;
Set the User Role (setClientRole)
(int)setClientRole:(AgoraClientRole)role;
Enable the Audio Mode (enableAudio)
(int)enableAudio;
Disable the Audio Mode (disableAudio)
(int)disableAudio;