NERTC iOS SDK V5.8.20
载入中...
搜索中...
未找到
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>
11#import "NERtcEngineEnum.h"
12#import "NERtcEngineBase.h"
13
14#pragma clang diagnostic push
15#pragma clang diagnostic ignored "-Wdocumentation"
16
17
18NS_ASSUME_NONNULL_BEGIN
19
30@protocol NERtcChannelDelegate <NSObject>
31
32@optional
33
50- (void)onNERtcChannelConnectionStateChangeWithState:(NERtcConnectionStateType)state
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
367- (void)onNERtcChannelUserVideoStreamDidStart:(uint64_t)userID streamType:(NERtcStreamChannelType)streamType streamProfile:(NERtcVideoProfileType)profile;
368
384- (void)onNERtcChannelUserVideoDidStop:(uint64_t)userID;
385
403- (void)onNERtcChannelUserVideoStreamDidStop:(uint64_t)userID streamType:(NERtcStreamChannelType)streamType;
404
421- (void)onNERtcChannelUserSubStreamDidStartWithUserID:(uint64_t)userID subStreamProfile:(NERtcVideoProfileType)profile;
422
437- (void)onNERtcChannelUserSubStreamDidStop:(uint64_t)userID;
438
458- (void)onNERtcChannelUser:(uint64_t)userID videoMuted:(BOOL)muted;
459
481- (void)onNERtcChannelUser:(uint64_t)userID videoMuted:(BOOL)muted streamType:(NERtcStreamChannelType)streamType;
482
500- (void)onNERtcChannelDidDisconnectWithReason:(NERtcError)reason;
501
514- (void)onNERtcChannelReconnectingStart;
515
530- (void)onNERtcChannelRejoinChannel:(NERtcError)result;
531
544- (void)onNERtcChannelFirstAudioDataDidReceiveWithUserID:(uint64_t)userID;
545
562- (void)onNERtcChannelFirstVideoDataDidReceiveWithUserID:(uint64_t)userID;
563
574- (void)onNERtcChannelFirstVideoDataDidReceiveWithUserID:(uint64_t)userID streamType:(NERtcStreamChannelType)type;
587- (void)onNERtcChannelFirstAudioFrameDecoded:(uint64_t)userID;
588
609- (void)onNERtcChannelFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height;
610
623- (void)onNERtcChannelFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(NERtcStreamChannelType)type;
624
665- (void)onNERtcChannelFirstVideoFrameRender:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height elapsed:(uint64_t)elapsed streamType:(NERtcStreamChannelType)streamType;
666
692- (void)onNERtcChannelRemoteVideoSizeDidChangedWithUserID:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(NERtcStreamChannelType)streamType;
693
727- (void)onNERtcChannelLocalVideoRenderSizeChanged:(NERtcStreamChannelType)streamType width:(uint32_t)width height:(uint32_t)height;
728
747- (void)onNERtcChannelRecvSEIMsg:(uint64_t)userID message:(NSData *)message;
748
749
766- (void)onNERtcChannelLiveStreamState:(NERtcLiveStreamStateCode)state taskID:(NSString *)taskID url:(NSString *)url;
767
768
787- (void)onLocalAudioVolumeIndication:(int)volume;
788
807- (void)onLocalAudioVolumeIndication:(int)volume withVad:(BOOL)enableVad;
808
809
834- (void)onRemoteAudioVolumeIndication:(nullable NSArray<NERtcAudioVolumeInfo*> *)speakers totalVolume:(int)totalVolume;
835
836
857- (void)onNERtcChannelLocalPublishFallbackToAudioOnly:(BOOL)isFallback streamType:(NERtcStreamChannelType)streamType;
858
881- (void)onNERtcChannelRemoteSubscribeFallbackToAudioOnly:(uint64_t)uid isFallback:(BOOL)isFallback streamType:(NERtcStreamChannelType)streamType;
882
899- (void)onNERtcChannelDidError:(NERtcError)errCode;
900
904- (void)onNERtcChannelMediaRightChangeWithAudio:(BOOL)isAudioBannedByServer
905 video:(BOOL)isVideoBannedByServer;
924- (void)onNERtcChannelDidWarning:(NERtcWarning)warnCode msg:(NSString *)msg;
925
926- (void)onNERtcChannelApiDidExecuted:(NSString *)apiName errCode:(NERtcError)errCode msg:(NSString *)msg;
927
942- (void)onNERtcChannelMediaRelayStateDidChange:(NERtcChannelMediaRelayState)state channelName:(NSString *)channelName;
943
960- (void)onNERtcChannelDidReceiveChannelMediaRelayEvent:(NERtcChannelMediaRelayEvent)event channelName:(NSString *)channelName error:(NERtcError)error;
961
973- (void)onNERtcChannelPermissionKeyWillExpire;
974
1007- (void)onNERtcChannelUpdatePermissionKey:(NSString *)key error:(NERtcError)error timeout:(NSUInteger)timeout;
1008
1017- (void)onNERtcChannelLabFeatureDidCallbackWithKey:(NSString*)key param:(id)param;
1018
1019@end
1020
1021NS_ASSUME_NONNULL_END
1022
1023#pragma clang diagnostic pop
NERtcChannelMediaRelayEvent
媒体流转发回调事件
定义 NERtcEngineEnum.h:3398
NERtcChannelMediaRelayState
媒体流转发状态
定义 NERtcEngineEnum.h:3351
NERtcSessionLeaveReason
用户离开房间的原因。
定义 NERtcEngineEnum.h:121
NERtcConnectionStateType
当前房间的连接状态。
定义 NERtcEngineEnum.h:45
NERtcVideoProfileType
视频 profile 类型。
定义 NERtcEngineEnum.h:447
NERtcClientRole
用户角色。
定义 NERtcEngineEnum.h:206
NERtcStreamChannelType
SEI 发送的流通道类型。
定义 NERtcEngineEnum.h:1125
NERtcLiveStreamStateCode
直播推流状态。
定义 NERtcEngineEnum.h:3023
NERtcReasonConnectionChangedType
当前 engine 连接状态变更的原因。
定义 NERtcEngineEnum.h:255
NERtcError
Engine Error Code。
定义 NERtcEngineErrorCode.h:17
NERtcWarning
定义 NERtcEngineErrorCode.h:854
声音音量信息。
定义 NERtcEngineBase.h:1567
onUserJoined 回调时的一些可选信息
定义 NERtcEngineBase.h:2797
onUserLeave 回调时的一些可选信息
定义 NERtcEngineBase.h:2809