5 #import <Foundation/Foundation.h>
9 #import <CoreVideo/CoreVideo.h>
11 NS_ASSUME_NONNULL_BEGIN
39 - (void)onNERtcEngineDidError:(
NERtcError)errCode;
59 - (void)onNERtcEngineDidWarning:(
NERtcWarning)warnCode msg:(NSString *)msg;
91 - (void)onNERtcEngineDidLeaveChannelWithResult:(
NERtcError)result;
109 - (void)onNERtcEngineDidDisconnectWithReason:(
NERtcError)reason;
123 - (void)onNERtcEngineRejoinChannel:(
NERtcError)result;
151 - (void)onNERtcEngineUserDidJoinWithUserID:(uint64_t)userID userName:(NSString *)userName;
224 - (void)onNERtcEngineUserAudioDidStart:(uint64_t)userID;
237 - (void)onNERtcEngineUserAudioDidStop:(uint64_t)userID;
254 - (void)onNERtcEngineUserVideoDidStartWithUserID:(uint64_t)userID videoProfile:(
NERtcVideoProfileType)profile;
269 - (void)onNERtcEngineUserVideoDidStop:(uint64_t)userID;
285 - (void)onNERtcEngineUserSubStreamDidStartWithUserID:(uint64_t)userID subStreamProfile:(
NERtcVideoProfileType)profile;
299 - (void)onNERtcEngineUserSubStreamDidStop:(uint64_t)userID;
323 - (void)onNERtcEngineMediaRightChangeWithAudio:(BOOL)isAudioBannedByServer
324 video:(BOOL)isVideoBannedByServer;
338 - (void)onNERtcEngineUserSubStreamAudioDidStart:(uint64_t)userID;
352 - (void)onNERtcEngineUserSubStreamAudioDidStop:(uint64_t)userID;
372 - (void)onNERtcEngineUser:(uint64_t)userID subStreamAudioMuted:(BOOL)muted;
437 - (void)onNERtcEngineVideoFrameCaptured:(CVPixelBufferRef)bufferRef rotation:(
NERtcVideoRotationType)rotation;
527 - (void)onNERtcEngineRecvSEIMsg:(uint64_t)userID message:(NSData *)message;
557 - (void)onNERtcEngineUserVideoProfileDidUpdate:(uint64_t)userID maxProfile:(
NERtcVideoProfileType)maxProfile;
576 - (void)onNERtcEngineUser:(uint64_t)userID videoMuted:(BOOL)muted;
608 - (void)onNERtcEngineUser:(uint64_t)userID videoMuted:(BOOL)muted streamType:(
NERtcStreamChannelType)streamType;
623 - (void)onNERtcEngineUser:(uint64_t)userID audioMuted:(BOOL)muted;
639 - (void)onNERtcEngineFirstVideoDataDidReceiveWithUserID:(uint64_t)userID;
666 - (void)onNERtcEngineFirstVideoDataDidReceiveWithUserID:(uint64_t)userID streamType:(
NERtcStreamChannelType)streamType;
678 - (void)onNERtcEngineFirstAudioDataDidReceiveWithUserID:(uint64_t)userID;
691 - (void)onEngineFirstAudioFrameDecoded:(uint64_t)userID;
711 - (void)onEngineFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height;
748 - (void)onEngineFirstVideoFrameDecoded:(uint64_t)userID width:(uint32_t)width height:(uint32_t)height streamType:(
NERtcStreamChannelType)streamType;
835 - (void)onAudioMixingTimestampUpdate:(uint64_t)timeStampMS;
849 - (void)onAudioEffectFinished:(uint32_t)effectId;
870 - (void)onLocalAudioVolumeIndication:(
int)volume;
890 - (void)onLocalAudioVolumeIndication:(
int)volume withVad:(BOOL)enableVad;
915 -(void)onRemoteAudioVolumeIndication:(nullable NSArray<
NERtcAudioVolumeInfo*> *)speakers totalVolume:(
int)totalVolume;
931 - (void)onNERtcEngineHardwareResourceReleased:(
NERtcError)result;
949 - (void)onNERtcCameraFocusChanged:(CGPoint)focusPoint;
965 - (void)onNERtcCameraExposureChanged:(CGPoint)exposurePoint;
1049 - (void)onNERtcEngineLocalPublishFallbackToAudioOnly:(BOOL)isFallback streamType:(
NERtcStreamChannelType)streamType;
1074 - (void)onNERtcEngineRemoteSubscribeFallbackToAudioOnly:(uint64_t)uid isFallback:(BOOL)isFallback streamType:(
NERtcStreamChannelType)streamType;
1228 - (void)onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame;
1254 - (void)onNERtcEnginePlaybackAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame channelId:(uint64_t)channelId;
1297 - (void)onNERtcEngineSubStreamAudioFrameDidRecord:(
NERtcAudioFrame *)frame;
1321 - (void)onNERtcEnginePlaybackSubStreamAudioFrameBeforeMixingWithUserID:(uint64_t)userID frame:(
NERtcAudioFrame *)frame channelId:(uint64_t)channelId;
1326 NS_ASSUME_NONNULL_END
NERtcAudioMixingErrorCode
伴音错误码。
Definition: NERtcEngineEnum.h:2203
NERtcAudioDeviceState
音频设备状态。
Definition: NERtcEngineEnum.h:2729
NERtcVirtualBackgroundSourceStateReason
虚拟背景未成功启用的原因或确认成功的信息。
Definition: NERtcEngineEnum.h:1029
NERtcChannelMediaRelayEvent
媒体流转发回调事件
Definition: NERtcEngineEnum.h:2945
NERtcChannelMediaRelayState
媒体流转发状态
Definition: NERtcEngineEnum.h:2898
NERtcAudioDeviceType
音频设备类型。
Definition: NERtcEngineEnum.h:2661
NERtcLocalVideoWatermarkState
视频水印状态。
Definition: NERtcEngineEnum.h:1211
NERtcAudioOutputRouting
音频路由。
Definition: NERtcEngineEnum.h:1354
NERtcAudioMixingState
伴音任务状态。
Definition: NERtcEngineEnum.h:2174
NERtcSessionLeaveReason
用户离开房间的原因。
Definition: NERtcEngineEnum.h:121
NERtcConnectionStateType
当前房间的连接状态。
Definition: NERtcEngineEnum.h:45
NERtcVideoProfileType
视频 profile 类型。
Definition: NERtcEngineEnum.h:357
NERtcNetworkConnectionType
网络连接的类型。
Definition: NERtcEngineEnum.h:2360
NERtcAudioRecordingCode
录音回调状态码。
Definition: NERtcEngineEnum.h:1736
NERtcNetworkQuality
网络质量类型。
Definition: NERtcEngineEnum.h:2824
NERtcVideoDeviceState
视频设备状态无限制,SDK 可以完全控制 Audio Session。
Definition: NERtcEngineEnum.h:2776
NERtcClientRole
用户角色。
Definition: NERtcEngineEnum.h:177
NERtcStreamChannelType
SEI发送的流通道类型。
Definition: NERtcEngineEnum.h:998
NERtcLiveStreamStateCode
直播推流状态。
Definition: NERtcEngineEnum.h:2570
NERtcReasonConnectionChangedType
当前engine连接状态变更的原因。
Definition: NERtcEngineEnum.h:226
NERtcVideoDeviceType
视频设备类型。
Definition: NERtcEngineEnum.h:2699
NERtcVideoRotationType
视频数据的旋转方向
Definition: NERtcEngineEnum.h:913
NERtcError
Engine Error Code。
Definition: NERtcEngineErrorCode.h:17
NERtcWarning
Definition: NERtcEngineErrorCode.h:568
音频帧。
Definition: NERtcEngineBase.h:1428
声音音量信息。
Definition: NERtcEngineBase.h:1473
上下行 Last mile 网络质量探测结果。
Definition: NERtcEngineBase.h:2575
视频帧信息。
Definition: NERtcEngineBase.h:1518
音频数据回调 如果需要对音频数据做处理,需要实现这个 protocol
Definition: NERtcEngineDelegate.h:1161
音频会话回调
Definition: NERtcEngineDelegate.h:449
NERtcEngine 常用回调
Definition: NERtcEngineDelegate.h:21
void onNERtcEngineReconnectingStart()
重连开始回调。 客户端和服务器断开连接时,SDK 会进行重连,重连开始时触发此回调。重连结果请参考 onNERtcEngineRejoinChannel 、onNERtcEngineDidDisconn...
NERtcEngine 扩展回调。
Definition: NERtcEngineDelegate.h:539
void onNERtcEngineAudioHasHowling()
检测到啸叫回调。 当声源与扩音设备之间因距离过近时,可能会产生啸叫。NERTC SDK 支持啸叫检测,当检测到有啸叫信号产生的时候,自动触发该回调直至啸叫停止。App 应用层可以在收到啸叫回调时,提示用...
直播推流状态回调 如果需要监听直播推流状态,需要实现这个 protocol
Definition: NERtcEngineDelegate.h:386
本地视频数据采集回调 如果需要对采集数据做美颜等处理,需要实现这个 protocol。
Definition: NERtcEngineDelegate.h:417
外部视频渲染。
Definition: NERtcEngineDelegate.h:479
注册 SEI 观测者。 注册观测者并拉流成功后,当远端流发送 SEI,本端会收到 onNERtcEngineRecvSEIMsg 回调。
Definition: NERtcEngineDelegate.h:507