5#import <Foundation/Foundation.h>
9#import <CoreVideo/CoreVideo.h>
11#pragma clang diagnostic push
12#pragma clang diagnostic ignored "-Wdocumentation"
15NS_ASSUME_NONNULL_BEGIN
25@protocol NERtcEngineDelegate <NSObject>
43- (void)onNERtcEngineDidError:(
NERtcError)errCode;
63- (void)onNERtcEngineDidWarning:(
NERtcWarning)warnCode msg:(NSString *)msg;
65- (void)onNERtcEngineApiDidExecuted:(NSString *)apiName errCode:(
NERtcError)errCode msg:(NSString *)msg;
97- (void)onNERtcEngineDidLeaveChannelWithResult:(
NERtcError)result;
114- (void)onNERtcEngineDidDisconnectWithReason:(
NERtcError)reason;
128 - (void)onNERtcEngineRejoinChannel:(
NERtcError)result;
156 - (void)onNERtcEngineUserDidJoinWithUserID:(uint64_t)userID userName:(NSString *)userName;
199- (void)onNERtcEngineUserDidJoinWithUserID:(uint64_t)userID userName:(NSString *)userName joinExtraInfo:(nullable
NERtcUserJoinExtraInfo *)joinExtraInfo;
304- (void)onNERtcEngineReconnectingStart;
317- (void)onNERtcEngineUserAudioDidStart:(uint64_t)userID;
330- (void)onNERtcEngineUserAudioDidStop:(uint64_t)userID;
347- (void)onNERtcEngineUserVideoDidStartWithUserID:(uint64_t)userID videoProfile:(
NERtcVideoProfileType)profile;
362- (void)onNERtcEngineUserVideoDidStop:(uint64_t)userID;
378- (void)onNERtcEngineUserSubStreamDidStartWithUserID:(uint64_t)userID subStreamProfile:(
NERtcVideoProfileType)profile;
392- (void)onNERtcEngineUserSubStreamDidStop:(uint64_t)userID;
416- (void)onNERtcEngineMediaRightChangeWithAudio:(BOOL)isAudioBannedByServer
417 video:(BOOL)isVideoBannedByServer;
431- (void)onNERtcEngineUserSubStreamAudioDidStart:(uint64_t)userID;
445- (void)onNERtcEngineUserSubStreamAudioDidStop:(uint64_t)userID;
465- (void)onNERtcEngineUser:(uint64_t)userID subStreamAudioMuted:(BOOL)muted;
479@protocol NERtcEngineLiveStreamObserver <NSObject>
510@protocol NERtcEngineVideoFrameObserver <NSObject>
530- (void)onNERtcEngineVideoFrameCaptured:(CVPixelBufferRef)bufferRef rotation:(
NERtcVideoRotationType)rotation;
542@protocol NERtcEngineAudioSessionObserver <NSObject>
572@protocol NERtcEngineVideoRenderSink <NSObject>
603@protocol NERtcEngineVideoSEIObserver <NSObject>
623- (void)onNERtcEngineRecvSEIMsg:(uint64_t)userID message:(NSData *)message;
627@protocol NERtcEnginePreDecodeObserver <NSObject>
655@protocol NERtcEngineVideoEncoderQosObserver <NSObject>
710- (void)onNERtcEngineBitrateUpdated:(
int)bitrateBps
745@protocol NERtcEnginePushStreamingObserver <NSObject>
801- (void)onNERtcEngineStartPushStreamingWithResult:(
NERtcError)result channelId:(uint64_t)channelId;
818- (void)onNERtcEngineStopPushStreaming:(
NERtcError)result;
836- (void)onNERtcEnginePushStreamingChangeToReconnectingWithReason:(
NERtcError)reason;
852- (void)onNERtcEnginePushStreamingReconnectedSuccess;
864@protocol NERtcEngineDelegateEx <NERtcEngineDelegate,
865NERtcEngineVideoFrameObserver,
866NERtcEngineAudioSessionObserver,
867NERtcEngineLiveStreamObserver,
868NERtcEngineVideoSEIObserver,
869NERtcEnginePushStreamingObserver>
887- (void)onNERtcEngineUserVideoProfileDidUpdate:(uint64_t)userID maxProfile:(
NERtcVideoProfileType)maxProfile;
906- (void)onNERtcEngineUser:(uint64_t)userID videoMuted:(BOOL)muted;
938- (void)onNERtcEngineUser:(uint64_t)userID videoMuted:(BOOL)muted streamType:(
NERtcStreamChannelType)streamType;
953- (void)onNERtcEngineUser:(uint64_t)userID audioMuted:(BOOL)muted;
969- (void)onNERtcEngineFirstVideoDataDidReceiveWithUserID:(uint64_t)userID;
999- (void)onNERtcEngineFirstVideoDataDidReceiveWithUserID:(uint64_t)userID streamType:(
NERtcStreamChannelType)streamType;
1039- (void)onNERtcEngineRemoteVideoSizeDidChangedWithUserID:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(
NERtcStreamChannelType)streamType;
1074- (void)onNERtcEngineLocalVideoRenderSizeChanged:(
NERtcStreamChannelType)streamType width:(uint32_t)width height:(uint32_t)height;
1086- (void)onNERtcEngineFirstAudioDataDidReceiveWithUserID:(uint64_t)userID;
1099- (void)onEngineFirstAudioFrameDecoded:(uint64_t)userID;
1141- (void)onEngineFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height;
1178- (void)onEngineFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(
NERtcStreamChannelType)streamType;
1220- (void)onEngineFirstVideoFrameRender:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height elapsed:(uint64_t)elapsed streamType:(
NERtcStreamChannelType)streamType;
1307- (void)onAudioMixingTimestampUpdate:(uint64_t)timeStampMS;
1321- (void)onAudioEffectFinished:(uint32_t)effectId;
1350- (void)onAudioEffectTimestampUpdateWithId:(uint32_t)effectId timeStampMS:(uint64_t)timeStampMS;
1370- (void)onLocalAudioVolumeIndication:(
int)volume;
1390- (void)onLocalAudioVolumeIndication:(
int)volume withVad:(BOOL)enableVad;
1415-(void)onRemoteAudioVolumeIndication:(nullable NSArray<
NERtcAudioVolumeInfo*> *)speakers totalVolume:(
int)totalVolume;
1431- (void)onNERtcEngineHardwareResourceReleased:(
NERtcError)result;
1449- (void)onNERtcCameraFocusChanged:(CGPoint)focusPoint;
1465- (void)onNERtcCameraExposureChanged:(CGPoint)exposurePoint;
1483- (void)onNERtcEngineAudioHasHowling;
1498- (void)onNERtcEngineAudioHasHowling:(BOOL)flag;
1566- (void)onNERtcEngineLocalPublishFallbackToAudioOnly:(BOOL)isFallback streamType:(
NERtcStreamChannelType)streamType;
1591- (void)onNERtcEngineRemoteSubscribeFallbackToAudioOnly:(uint64_t)uid isFallback:(BOOL)isFallback streamType:(
NERtcStreamChannelType)streamType;
1676- (void)onNERtcEnginePermissionKeyWillExpire;
1710- (void)onNERtcEngineUpdatePermissionKey:(NSString *)key error:(
NERtcError)error timeout:(NSUInteger)timeout;
1724- (void)onNERtcEngineUserDataDidStart:(uint64_t)userID;
1736- (void)onNERtcEngineUserDataDidStop:(uint64_t)userID;
1750- (void)onNERtcEngineUserDataReceiveMessage:(uint64_t)userID data:(NSData *)data;
1762- (void)onNERtcEngineUserDataStateChanged:(uint64_t)userID;
1776- (void)onNERtcEngineUserDataBufferedAmountChanged:(uint64_t)userID previousAmount:(uint64_t)previousAmount;
1786- (void)onNERtcEngineLabFeatureDidCallbackWithKey:(NSString*)key param:(
id)param;
1800@protocol NERtcEngineAudioFrameObserver <NSObject>
1867- (void)onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame;
1893- (void)onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame channelId:(uint64_t)channelId;
1936- (void)onNERtcEngineSubStreamAudioFrameDidRecord:(
NERtcAudioFrame *)frame;
1960- (void)onNERtcEnginePlaybackSubStreamAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame channelId:(uint64_t)channelId;
1965@protocol NERtcEnginePacketObserver <NSObject>
1985- (BOOL)onReceiveAudioPacket:(
NERtcPacket *)packet;
1991- (BOOL)onReceiveVideoPacket:(
NERtcPacket *)packet;
1995NS_ASSUME_NONNULL_END
1997#pragma clang diagnostic pop
NERtcAudioMixingErrorCode
伴音错误码。
Definition NERtcEngineEnum.h:2608
NERtcAudioDeviceState
音频设备状态。
Definition NERtcEngineEnum.h:3134
NERtcVirtualBackgroundSourceStateReason
虚拟背景未成功启用的原因或确认成功的信息。
Definition NERtcEngineEnum.h:1126
NERtcVideoBufferType
Definition NERtcEngineEnum.h:1042
NERtcChannelMediaRelayEvent
媒体流转发回调事件
Definition NERtcEngineEnum.h:3350
NERtcChannelMediaRelayState
媒体流转发状态
Definition NERtcEngineEnum.h:3303
NERtcVideoCodecType
Definition NERtcEngineEnum.h:2211
NERtcAudioDeviceType
音频设备类型。
Definition NERtcEngineEnum.h:3066
NERtcLocalVideoWatermarkState
视频水印状态。
Definition NERtcEngineEnum.h:1308
NERtcAudioOutputRouting
音频路由。
Definition NERtcEngineEnum.h:1444
NERtcAudioMixingState
伴音任务状态。
Definition NERtcEngineEnum.h:2579
NERtcSessionLeaveReason
用户离开房间的原因。
Definition NERtcEngineEnum.h:121
NERtcConnectionStateType
当前房间的连接状态。
Definition NERtcEngineEnum.h:45
NERtcVideoProfileType
视频 profile 类型。
Definition NERtcEngineEnum.h:447
NERtcNetworkConnectionType
网络连接的类型。
Definition NERtcEngineEnum.h:2765
NERtcAudioRecordingCode
录音回调状态码。
Definition NERtcEngineEnum.h:2097
NERtcNetworkQuality
网络质量类型。
Definition NERtcEngineEnum.h:3229
NERtcVideoDeviceState
视频设备状态无限制,SDK 可以完全控制 Audio Session。
Definition NERtcEngineEnum.h:3181
NERtcClientRole
用户角色。
Definition NERtcEngineEnum.h:206
NERtcStreamChannelType
SEI 发送的流通道类型。
Definition NERtcEngineEnum.h:1095
NERtcLiveStreamStateCode
直播推流状态。
Definition NERtcEngineEnum.h:2975
NERtcReasonConnectionChangedType
当前 engine 连接状态变更的原因。
Definition NERtcEngineEnum.h:255
NERtcVideoDeviceType
视频设备类型。
Definition NERtcEngineEnum.h:3104
NERtcAudioStreamType
音频流类型,目前同时支持音频两路流:主流和辅流
Definition NERtcEngineEnum.h:1770
NERtcVideoRotationType
视频数据的旋转方向
Definition NERtcEngineEnum.h:1003
NERtcError
Engine Error Code。
Definition NERtcEngineErrorCode.h:17
NERtcWarning
Definition NERtcEngineErrorCode.h:854
音频帧。
Definition NERtcEngineBase.h:1519
声音音量信息。
Definition NERtcEngineBase.h:1564
上下行 Last mile 网络质量探测结果。
Definition NERtcEngineBase.h:2482
Definition NERtcEngineBase.h:3110
编码完的媒体数据帧
Definition NERtcEngineBase.h:2860
视频帧信息。
Definition NERtcEngineBase.h:1609