8#ifndef NERTC_CHANNEL_EVENT_HANDLER_H
9#define NERTC_CHANNEL_EVENT_HANDLER_H
11#include "nertc_base_types.h"
53 virtual void onError(
int error_code,
const char* msg) {
73 virtual void onWarning(
int warn_code,
const char* msg) {
327 (void)join_extra_info;
408 (void)leave_extra_info;
595 (void)videoStreamType;
1022 (void)speaker_number;
1275 (void)is_audio_banned;
1276 (void)is_video_banned;
1384 (void)videoStreamType;
定义 nertc_channel_event_handler.h:34
virtual void onUserAudioStop(uid_t uid)
定义 nertc_channel_event_handler.h:438
virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height)
定义 nertc_channel_event_handler.h:893
virtual void onAddLiveStreamTask(const char *task_id, const char *url, int error_code)
定义 nertc_channel_event_handler.h:1047
virtual void onFirstVideoFrameRender(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height, uint64_t elapsed)
定义 nertc_channel_event_handler.h:940
virtual void onWarning(int warn_code, const char *msg)
定义 nertc_channel_event_handler.h:73
virtual void onUserSubStreamVideoStart(uid_t uid, NERtcVideoProfileType max_profile)
定义 nertc_channel_event_handler.h:614
virtual void onScreenCaptureSourceDataUpdate(NERtcScreenCaptureSourceData data)
定义 nertc_channel_event_handler.h:668
virtual void onLiveStreamState(const char *task_id, const char *url, NERtcLiveStreamStateCode state)
定义 nertc_channel_event_handler.h:1127
virtual void onUserAudioStart(uid_t uid)
定义 nertc_channel_event_handler.h:423
virtual void onUserJoined(uid_t uid, const char *user_name)
定义 nertc_channel_event_handler.h:280
virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char *channel_name, NERtcErrorCode error)
定义 nertc_channel_event_handler.h:1191
virtual void onLocalVideoRenderSizeChanged(NERtcVideoStreamType type, uint32_t width, uint32_t height)
定义 nertc_channel_event_handler.h:813
virtual void onUserSubStreamVideoStop(uid_t uid)
定义 nertc_channel_event_handler.h:631
virtual void onRemoteVideoReceiveSizeChanged(uid_t uid, NERtcVideoStreamType type, uint32_t width, uint32_t height)
定义 nertc_channel_event_handler.h:773
virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned)
定义 nertc_channel_event_handler.h:1274
virtual void onLeaveChannel(NERtcErrorCode result)
定义 nertc_channel_event_handler.h:204
virtual void onScreenCaptureStatus(NERtcScreenCaptureStatus status)
定义 nertc_channel_event_handler.h:648
virtual void onUserJoined(uid_t uid, const char *user_name, NERtcUserJoinExtraInfo join_extra_info)
定义 nertc_channel_event_handler.h:324
virtual void onUpdateLiveStreamTask(const char *task_id, const char *url, int error_code)
定义 nertc_channel_event_handler.h:1074
virtual void onPermissionKeyWillExpire()
定义 nertc_channel_event_handler.h:1290
virtual void onRecvSEIMsg(uid_t uid, const char *data, uint32_t dataSize)
定义 nertc_channel_event_handler.h:1150
virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume)
定义 nertc_channel_event_handler.h:1019
virtual void onUserSubStreamAudioStart(uid_t uid)
定义 nertc_channel_event_handler.h:472
virtual void onConnectionStateChange(NERtcConnectionStateType state, NERtcReasonConnectionChangedType reason)
定义 nertc_channel_event_handler.h:160
virtual void onUserLeft(uid_t uid, NERtcSessionLeaveReason reason, NERtcUserJoinExtraInfo leave_extra_info)
定义 nertc_channel_event_handler.h:405
virtual void onLabFeatureCallback(const char *key, const char *param)
定义 nertc_channel_event_handler.h:1338
virtual void onUserSubStreamAudioMute(uid_t uid, bool mute)
定义 nertc_channel_event_handler.h:505
virtual void onUserVideoStart(uid_t uid, NERtcVideoProfileType max_profile)
定义 nertc_channel_event_handler.h:523
virtual void onFirstVideoDataReceived(NERtcVideoStreamType type, uid_t uid)
定义 nertc_channel_event_handler.h:730
virtual void onUserVideoStop(uid_t uid)
定义 nertc_channel_event_handler.h:539
virtual void onFirstVideoDataReceived(uid_t uid)
定义 nertc_channel_event_handler.h:701
virtual void onRemoveLiveStreamTask(const char *task_id, int error_code)
定义 nertc_channel_event_handler.h:1099
virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type)
定义 nertc_channel_event_handler.h:1218
virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute)
定义 nertc_channel_event_handler.h:594
virtual void onFirstAudioFrameDecoded(uid_t uid)
定义 nertc_channel_event_handler.h:830
virtual void onError(int error_code, const char *msg)
定义 nertc_channel_event_handler.h:53
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type)
定义 nertc_channel_event_handler.h:1246
virtual void onClientRoleChanged(NERtcClientRole oldRole, NERtcClientRole newRole)
定义 nertc_channel_event_handler.h:250
virtual void onUserSubStreamAudioStop(uid_t uid)
定义 nertc_channel_event_handler.h:485
virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height)
定义 nertc_channel_event_handler.h:852
virtual void onReconnectingStart(channel_id_t cid, uid_t uid)
定义 nertc_channel_event_handler.h:139
virtual void onLocalAudioVolumeIndication(int volume)
定义 nertc_channel_event_handler.h:967
virtual void onApiCallExecuted(const char *api_name, NERtcErrorCode error, const char *message)
定义 nertc_channel_event_handler.h:94
virtual void onRejoinChannel(channel_id_t cid, uid_t uid, NERtcErrorCode result, uint64_t elapsed)
定义 nertc_channel_event_handler.h:184
virtual void onDisconnect(NERtcErrorCode reason)
定义 nertc_channel_event_handler.h:225
virtual void onUserVideoMute(uid_t uid, bool mute)
定义 nertc_channel_event_handler.h:559
virtual void onFirstAudioDataReceived(uid_t uid)
定义 nertc_channel_event_handler.h:683
virtual void onUpdatePermissionKey(const char *key, NERtcErrorCode error, int timeout)
定义 nertc_channel_event_handler.h:1324
virtual void onUserLeft(uid_t uid, NERtcSessionLeaveReason reason)
定义 nertc_channel_event_handler.h:354
virtual void onUserAudioMute(uid_t uid, bool mute)
定义 nertc_channel_event_handler.h:455
virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad)
定义 nertc_channel_event_handler.h:989
virtual void onRemoteVideoFrame(NERtcVideoStreamType videoStreamType, uid_t uid, void *data, NERtcVideoType type, uint32_t width, uint32_t height, uint32_t count, uint32_t offset[kNERtcMaxPlaneCount], uint32_t stride[kNERtcMaxPlaneCount], NERtcVideoRotation rotation)
定义 nertc_channel_event_handler.h:1374
virtual void onJoinChannel(channel_id_t cid, uid_t uid, NERtcErrorCode result, uint64_t elapsed)
定义 nertc_channel_event_handler.h:117
virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char *channel_name)
定义 nertc_channel_event_handler.h:1170
NERtcClientRole
定义 nertc_engine_defines.h:253
NERtcChannelMediaRelayState
定义 nertc_engine_defines.h:6426
NERtcReasonConnectionChangedType
定义 nertc_engine_defines.h:2590
NERtcVideoStreamType
定义 nertc_engine_defines.h:6289
NERtcSessionLeaveReason
定义 nertc_engine_defines.h:5954
NERtcConnectionStateType
定义 nertc_engine_defines.h:2523
uint64_t uid_t
定义 nertc_engine_defines.h:192
NERtcVideoRotation
定义 nertc_engine_defines.h:5649
NERtcVideoProfileType
定义 nertc_engine_defines.h:1917
uint64_t channel_id_t
定义 nertc_engine_defines.h:201
NERtcScreenCaptureStatus
定义 nertc_engine_defines.h:4352
NERtcVideoType
定义 nertc_engine_defines.h:5575
NERtcLiveStreamStateCode
定义 nertc_engine_defines.h:1132
NERtcErrorCode
定义 nertc_error_code.h:26
NERtcChannelMediaRelayEvent
定义 nertc_engine_defines.h:6473
#define kNERtcMaxPlaneCount
定义 nertc_engine_defines.h:28
The definition of error codes of NERtc SDK.
The definition of error codes of NERtc SDK.
定义 nertc_engine_defines.h:2814
定义 nertc_engine_defines.h:4543