5 #import <Foundation/Foundation.h>
9 #import <CoreVideo/CoreVideo.h>
11 #pragma clang diagnostic push
12 #pragma clang diagnostic ignored "-Wdocumentation"
15 NS_ASSUME_NONNULL_BEGIN
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;
115 - (void)onNERtcEngineDidDisconnectWithReason:(
NERtcError)reason;
129 - (void)onNERtcEngineRejoinChannel:(
NERtcError)result;
157 - (void)onNERtcEngineUserDidJoinWithUserID:(uint64_t)userID userName:(NSString *)userName;
200 - (void)onNERtcEngineUserDidJoinWithUserID:(uint64_t)userID userName:(NSString *)userName joinExtraInfo:(nullable
NERtcUserJoinExtraInfo *)joinExtraInfo;
318 - (void)onNERtcEngineUserAudioDidStart:(uint64_t)userID;
331 - (void)onNERtcEngineUserAudioDidStop:(uint64_t)userID;
348 - (void)onNERtcEngineUserVideoDidStartWithUserID:(uint64_t)userID videoProfile:(
NERtcVideoProfileType)profile;
363 - (void)onNERtcEngineUserVideoDidStop:(uint64_t)userID;
379 - (void)onNERtcEngineUserSubStreamDidStartWithUserID:(uint64_t)userID subStreamProfile:(
NERtcVideoProfileType)profile;
393 - (void)onNERtcEngineUserSubStreamDidStop:(uint64_t)userID;
417 - (void)onNERtcEngineMediaRightChangeWithAudio:(BOOL)isAudioBannedByServer
418 video:(BOOL)isVideoBannedByServer;
432 - (void)onNERtcEngineUserSubStreamAudioDidStart:(uint64_t)userID;
446 - (void)onNERtcEngineUserSubStreamAudioDidStop:(uint64_t)userID;
466 - (void)onNERtcEngineUser:(uint64_t)userID subStreamAudioMuted:(BOOL)muted;
531 - (void)onNERtcEngineVideoFrameCaptured:(CVPixelBufferRef)bufferRef rotation:(
NERtcVideoRotationType)rotation;
624 - (void)onNERtcEngineRecvSEIMsg:(uint64_t)userID message:(NSData *)message;
711 - (void)onNERtcEngineBitrateUpdated:(
int)bitrateBps
776 - (void)onNERtcEngineUserVideoProfileDidUpdate:(uint64_t)userID maxProfile:(
NERtcVideoProfileType)maxProfile;
795 - (void)onNERtcEngineUser:(uint64_t)userID videoMuted:(BOOL)muted;
827 - (void)onNERtcEngineUser:(uint64_t)userID videoMuted:(BOOL)muted streamType:(
NERtcStreamChannelType)streamType;
842 - (void)onNERtcEngineUser:(uint64_t)userID audioMuted:(BOOL)muted;
858 - (void)onNERtcEngineFirstVideoDataDidReceiveWithUserID:(uint64_t)userID;
885 - (void)onNERtcEngineFirstVideoDataDidReceiveWithUserID:(uint64_t)userID streamType:(
NERtcStreamChannelType)streamType;
897 - (void)onNERtcEngineFirstAudioDataDidReceiveWithUserID:(uint64_t)userID;
910 - (void)onEngineFirstAudioFrameDecoded:(uint64_t)userID;
930 - (void)onEngineFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height;
967 - (void)onEngineFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(
NERtcStreamChannelType)streamType;
1054 - (void)onAudioMixingTimestampUpdate:(uint64_t)timeStampMS;
1068 - (void)onAudioEffectFinished:(uint32_t)effectId;
1097 - (void)onAudioEffectTimestampUpdateWithId:(uint32_t)effectId timeStampMS:(uint64_t)timeStampMS;
1117 - (void)onLocalAudioVolumeIndication:(
int)volume;
1137 - (void)onLocalAudioVolumeIndication:(
int)volume withVad:(BOOL)enableVad;
1162 -(void)onRemoteAudioVolumeIndication:(nullable NSArray<
NERtcAudioVolumeInfo*> *)speakers totalVolume:(
int)totalVolume;
1178 - (void)onNERtcEngineHardwareResourceReleased:(
NERtcError)result;
1196 - (void)onNERtcCameraFocusChanged:(CGPoint)focusPoint;
1212 - (void)onNERtcCameraExposureChanged:(CGPoint)exposurePoint;
1296 - (void)onNERtcEngineLocalPublishFallbackToAudioOnly:(BOOL)isFallback streamType:(
NERtcStreamChannelType)streamType;
1321 - (void)onNERtcEngineRemoteSubscribeFallbackToAudioOnly:(uint64_t)uid isFallback:(BOOL)isFallback streamType:(
NERtcStreamChannelType)streamType;
1440 - (void)onNERtcEngineUpdatePermissionKey:(NSString *)key error:(
NERtcError)error timeout:(NSUInteger)timeout;
1454 - (void)onNERtcEngineUserDataDidStart:(uint64_t)userID;
1466 - (void)onNERtcEngineUserDataDidStop:(uint64_t)userID;
1480 - (void)onNERtcEngineUserDataReceiveMessage:(uint64_t)userID data:(NSData *)data;
1492 - (void)onNERtcEngineUserDataStateChanged:(uint64_t)userID;
1506 - (void)onNERtcEngineUserDataBufferedAmountChanged:(uint64_t)userID previousAmount:(uint64_t)previousAmount;
1587 - (void)onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame;
1613 - (void)onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame channelId:(uint64_t)channelId;
1656 - (void)onNERtcEngineSubStreamAudioFrameDidRecord:(
NERtcAudioFrame *)frame;
1680 - (void)onNERtcEnginePlaybackSubStreamAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame channelId:(uint64_t)channelId;
1685 NS_ASSUME_NONNULL_END
1687 #pragma clang diagnostic pop
NERtcAudioMixingErrorCode
伴音错误码。
Definition: NERtcEngineEnum.h:2285
NERtcAudioDeviceState
音频设备状态。
Definition: NERtcEngineEnum.h:2811
NERtcVirtualBackgroundSourceStateReason
虚拟背景未成功启用的原因或确认成功的信息。
Definition: NERtcEngineEnum.h:1074
NERtcVideoBufferType
Definition: NERtcEngineEnum.h:990
NERtcChannelMediaRelayEvent
媒体流转发回调事件
Definition: NERtcEngineEnum.h:3027
NERtcChannelMediaRelayState
媒体流转发状态
Definition: NERtcEngineEnum.h:2980
NERtcVideoCodecType
Definition: NERtcEngineEnum.h:1888
NERtcAudioDeviceType
音频设备类型。
Definition: NERtcEngineEnum.h:2743
NERtcLocalVideoWatermarkState
视频水印状态。
Definition: NERtcEngineEnum.h:1256
NERtcAudioOutputRouting
音频路由。
Definition: NERtcEngineEnum.h:1392
NERtcAudioMixingState
伴音任务状态。
Definition: NERtcEngineEnum.h:2256
NERtcSessionLeaveReason
用户离开房间的原因。
Definition: NERtcEngineEnum.h:121
NERtcConnectionStateType
当前房间的连接状态。
Definition: NERtcEngineEnum.h:45
NERtcVideoProfileType
视频 profile 类型。
Definition: NERtcEngineEnum.h:395
NERtcNetworkConnectionType
网络连接的类型。
Definition: NERtcEngineEnum.h:2442
NERtcAudioRecordingCode
录音回调状态码。
Definition: NERtcEngineEnum.h:1774
NERtcNetworkQuality
网络质量类型。
Definition: NERtcEngineEnum.h:2906
NERtcVideoDeviceState
视频设备状态无限制,SDK 可以完全控制 Audio Session。
Definition: NERtcEngineEnum.h:2858
NERtcClientRole
用户角色。
Definition: NERtcEngineEnum.h:206
NERtcStreamChannelType
SEI发送的流通道类型。
Definition: NERtcEngineEnum.h:1043
NERtcLiveStreamStateCode
直播推流状态。
Definition: NERtcEngineEnum.h:2652
NERtcReasonConnectionChangedType
当前engine连接状态变更的原因。
Definition: NERtcEngineEnum.h:255
NERtcVideoDeviceType
视频设备类型。
Definition: NERtcEngineEnum.h:2781
NERtcVideoRotationType
视频数据的旋转方向
Definition: NERtcEngineEnum.h:951
NERtcError
Engine Error Code。
Definition: NERtcEngineErrorCode.h:17
NERtcWarning
Definition: NERtcEngineErrorCode.h:771
音频帧。
Definition: NERtcEngineBase.h:1492
声音音量信息。
Definition: NERtcEngineBase.h:1537
上下行 Last mile 网络质量探测结果。
Definition: NERtcEngineBase.h:2661
编码完的媒体数据帧
Definition: NERtcEngineBase.h:3017
视频帧信息。
Definition: NERtcEngineBase.h:1582
音频数据回调 如果需要对音频数据做处理,需要实现这个 protocol
Definition: NERtcEngineDelegate.h:1520
音频会话回调
Definition: NERtcEngineDelegate.h:543
NERtcEngine 常用回调
Definition: NERtcEngineDelegate.h:25
void onNERtcEngineReconnectingStart()
重连开始回调。 客户端和服务器断开连接时,SDK 会进行重连,重连开始时触发此回调。重连结果请参考 onNERtcEngineRejoinChannel 、onNERtcEngineDidDisconn...
NERtcEngine 扩展回调。
Definition: NERtcEngineDelegate.h:758
void onNERtcEnginePermissionKeyWillExpire()
权限密钥即将过期事件回调。
void onNERtcEngineAudioHasHowling()
检测到啸叫回调。 当声源与扩音设备之间因距离过近时,可能会产生啸叫。NERTC SDK 支持啸叫检测,当检测到有啸叫信号产生的时候,自动触发该回调直至啸叫停止。App 应用层可以在收到啸叫回调时,提示用...
直播推流状态回调 如果需要监听直播推流状态,需要实现这个 protocol
Definition: NERtcEngineDelegate.h:480
Definition: NERtcEngineDelegate.h:628
Definition: NERtcEngineDelegate.h:656
本地视频数据采集回调 如果需要对采集数据做美颜等处理,需要实现这个 protocol。
Definition: NERtcEngineDelegate.h:511
外部视频渲染。
Definition: NERtcEngineDelegate.h:573
NERtcVideoBufferType getFrameBufferType()
注册 SEI 观测者。 注册观测者并拉流成功后,当远端流发送 SEI,本端会收到 onNERtcEngineRecvSEIMsg 回调。
Definition: NERtcEngineDelegate.h:604