NERtc iOS SDK  V5.5.40
NERtcChannelDelegate.h
浏览该文件的文档.
1 //
2 // NERtcChannelDelegate.h
3 // NERtcSDK
4 //
5 // Created by yuan on 2021/5/27.
6 // Copyright © 2021 Netease. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "NERtcEngineErrorCode.h"
11 #import "NERtcEngineEnum.h"
12 #import "NERtcEngineBase.h"
13 
14 #pragma clang diagnostic push
15 #pragma clang diagnostic ignored "-Wdocumentation"
16 
17 
18 NS_ASSUME_NONNULL_BEGIN
19 
30 @protocol NERtcChannelDelegate <NSObject>
31 
32 @optional
33 
50 - (void)onNERtcChannelConnectionStateChangeWithState:(NERtcConnectionStateType)state
51  reason:(NERtcReasonConnectionChangedType)reason;
52 
67 - (void)onNERtcChannelDidLeaveChannelWithResult:(NERtcError)result;
68 
98 - (void)onNERtcChannelUserDidJoinWithUserID:(uint64_t)userID userName:(NSString *)userName;
99 
142 - (void)onNERtcChannelUserDidJoinWithUserID:(uint64_t)userID userName:(NSString *)userName joinExtraInfo:(NERtcUserJoinExtraInfo *)joinExtraInfo;
143 
164 - (void)onNERtcChannelUserDidLeaveWithUserID:(uint64_t)userID reason:(NERtcSessionLeaveReason)reason;
165 
209 - (void)onNERtcChannelUserDidLeaveWithUserID:(uint64_t)userID reason:(NERtcSessionLeaveReason)reason leaveExtraInfo:(NERtcUserLeaveExtraInfo *)leaveExtraInfo;
210 
232 - (void)onNERtcChannelDidClientRoleChanged:(NERtcClientRole)oldRole newRole:(NERtcClientRole)newRole;
233 
247 - (void)onNERtcChannelUserAudioDidStart:(uint64_t)userID;
248 
262 - (void)onNERtcChannelUserAudioDidStop:(uint64_t)userID;
263 
279 - (void)onNERtcChannelUser:(uint64_t)userID audioMuted:(BOOL)muted;
280 
293 - (void)onNERtcChannelUserSubStreamAudioDidStart:(uint64_t)userID;
294 
307 - (void)onNERtcChannelUserSubStreamAudioDidStop:(uint64_t)userID;
308 
327 - (void)onNERtcChannelUser:(uint64_t)userID subStreamAudioMuted:(BOOL)muted;
328 
346 - (void)onNERtcChannelUserVideoDidStartWithUserID:(uint64_t)userID videoProfile:(NERtcVideoProfileType)profile;
347 
363 - (void)onNERtcChannelUserVideoDidStop:(uint64_t)userID;
364 
381 - (void)onNERtcChannelUserSubStreamDidStartWithUserID:(uint64_t)userID subStreamProfile:(NERtcVideoProfileType)profile;
382 
397 - (void)onNERtcChannelUserSubStreamDidStop:(uint64_t)userID;
398 
418 - (void)onNERtcChannelUser:(uint64_t)userID videoMuted:(BOOL)muted;
419 
441 - (void)onNERtcChannelUser:(uint64_t)userID videoMuted:(BOOL)muted streamType:(NERtcStreamChannelType)streamType;
442 
460 - (void)onNERtcChannelDidDisconnectWithReason:(NERtcError)reason;
461 
475 
490 - (void)onNERtcChannelRejoinChannel:(NERtcError)result;
491 
504 - (void)onNERtcChannelFirstAudioDataDidReceiveWithUserID:(uint64_t)userID;
505 
522 - (void)onNERtcChannelFirstVideoDataDidReceiveWithUserID:(uint64_t)userID;
523 
534 - (void)onNERtcChannelFirstVideoDataDidReceiveWithUserID:(uint64_t)userID streamType:(NERtcStreamChannelType)type;
547 - (void)onNERtcChannelFirstAudioFrameDecoded:(uint64_t)userID;
548 
569 - (void)onNERtcChannelFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height;
570 
583 - (void)onNERtcChannelFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(NERtcStreamChannelType)type;
584 
625 - (void)onNERtcChannelFirstVideoFrameRender:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height elapsed:(uint64_t)elapsed streamType:(NERtcStreamChannelType)streamType;
626 
652 - (void)onNERtcChannelRemoteVideoSizeDidChangedWithUserID:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(NERtcStreamChannelType)streamType;
653 
687 - (void)onNERtcChannelLocalVideoRenderSizeChanged:(NERtcStreamChannelType)streamType width:(uint32_t)width height:(uint32_t)height;
688 
707 - (void)onNERtcChannelRecvSEIMsg:(uint64_t)userID message:(NSData *)message;
708 
709 
726 - (void)onNERtcChannelLiveStreamState:(NERtcLiveStreamStateCode)state taskID:(NSString *)taskID url:(NSString *)url;
727 
728 
747 - (void)onLocalAudioVolumeIndication:(int)volume;
748 
767 - (void)onLocalAudioVolumeIndication:(int)volume withVad:(BOOL)enableVad;
768 
769 
794 - (void)onRemoteAudioVolumeIndication:(nullable NSArray<NERtcAudioVolumeInfo*> *)speakers totalVolume:(int)totalVolume;
795 
796 
817 - (void)onNERtcChannelLocalPublishFallbackToAudioOnly:(BOOL)isFallback streamType:(NERtcStreamChannelType)streamType;
818 
841 - (void)onNERtcChannelRemoteSubscribeFallbackToAudioOnly:(uint64_t)uid isFallback:(BOOL)isFallback streamType:(NERtcStreamChannelType)streamType;
842 
859 - (void)onNERtcChannelDidError:(NERtcError)errCode;
860 
864 - (void)onNERtcChannelMediaRightChangeWithAudio:(BOOL)isAudioBannedByServer
865  video:(BOOL)isVideoBannedByServer;
884 - (void)onNERtcChannelDidWarning:(NERtcWarning)warnCode msg:(NSString *)msg;
885 
886 - (void)onNERtcChannelApiDidExecuted:(NSString *)apiName errCode:(NERtcError)errCode msg:(NSString *)msg;
887 
902 - (void)onNERtcChannelMediaRelayStateDidChange:(NERtcChannelMediaRelayState)state channelName:(NSString *)channelName;
903 
920 - (void)onNERtcChannelDidReceiveChannelMediaRelayEvent:(NERtcChannelMediaRelayEvent)event channelName:(NSString *)channelName error:(NERtcError)error;
921 
934 
967 - (void)onNERtcChannelUpdatePermissionKey:(NSString *)key error:(NERtcError)error timeout:(NSUInteger)timeout;
968 
977 - (void)onNERtcChannelLabFeatureDidCallbackWithKey:(NSString*)key param:(id)param;
978 
979 @end
980 
981 NS_ASSUME_NONNULL_END
982 
983 #pragma clang diagnostic pop
NERtcChannelMediaRelayEvent
媒体流转发回调事件
Definition: NERtcEngineEnum.h:3286
NERtcChannelMediaRelayState
媒体流转发状态
Definition: NERtcEngineEnum.h:3239
NERtcSessionLeaveReason
用户离开房间的原因。
Definition: NERtcEngineEnum.h:121
NERtcConnectionStateType
当前房间的连接状态。
Definition: NERtcEngineEnum.h:45
NERtcVideoProfileType
视频 profile 类型。
Definition: NERtcEngineEnum.h:415
NERtcClientRole
用户角色。
Definition: NERtcEngineEnum.h:206
NERtcStreamChannelType
SEI发送的流通道类型。
Definition: NERtcEngineEnum.h:1063
NERtcLiveStreamStateCode
直播推流状态。
Definition: NERtcEngineEnum.h:2911
NERtcReasonConnectionChangedType
当前engine连接状态变更的原因。
Definition: NERtcEngineEnum.h:255
NERtcError
Engine Error Code。
Definition: NERtcEngineErrorCode.h:17
NERtcWarning
Definition: NERtcEngineErrorCode.h:813
声音音量信息。
Definition: NERtcEngineBase.h:1562
onUserJoined 回调时的一些可选信息
Definition: NERtcEngineBase.h:2770
onUserLeave 回调时的一些可选信息
Definition: NERtcEngineBase.h:2782
NERtcChannelDelegate 类监听和报告指定房间的事件和数据。
Definition: NERtcChannelDelegate.h:30
void onNERtcChannelPermissionKeyWillExpire()
权限密钥即将过期事件回调。
void onNERtcChannelReconnectingStart()
重连开始回调。 客户端和服务器断开连接时,SDK 会进行重连,重连开始时触发此回调。重连结果请参考 onNERtcEngineRejoinChannel 、onNERtcEngineDidDiscon...