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) {
326 (void)join_extra_info;
407 (void)leave_extra_info;
594 (void)videoStreamType;
1018 (void)speaker_number;
1269 (void)is_audio_banned;
1270 (void)is_video_banned;
Definition nertc_channel_event_handler.h:34
virtual void onUserAudioStop(uid_t uid)
Definition nertc_channel_event_handler.h:437
virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height)
Definition nertc_channel_event_handler.h:889
virtual void onAddLiveStreamTask(const char *task_id, const char *url, int error_code)
Definition nertc_channel_event_handler.h:1043
virtual void onFirstVideoFrameRender(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height, uint64_t elapsed)
Definition nertc_channel_event_handler.h:936
virtual void onWarning(int warn_code, const char *msg)
Definition nertc_channel_event_handler.h:73
virtual void onUserSubStreamVideoStart(uid_t uid, NERtcVideoProfileType max_profile)
Definition nertc_channel_event_handler.h:613
virtual void onScreenCaptureSourceDataUpdate(NERtcScreenCaptureSourceData data)
Definition nertc_channel_event_handler.h:666
virtual void onLiveStreamState(const char *task_id, const char *url, NERtcLiveStreamStateCode state)
Definition nertc_channel_event_handler.h:1123
virtual void onUserAudioStart(uid_t uid)
Definition nertc_channel_event_handler.h:422
virtual void onUserJoined(uid_t uid, const char *user_name)
Definition nertc_channel_event_handler.h:279
virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char *channel_name, NERtcErrorCode error)
Definition nertc_channel_event_handler.h:1187
virtual void onLocalVideoRenderSizeChanged(NERtcVideoStreamType type, uint32_t width, uint32_t height)
Definition nertc_channel_event_handler.h:809
virtual void onUserSubStreamVideoStop(uid_t uid)
Definition nertc_channel_event_handler.h:629
virtual void onRemoteVideoReceiveSizeChanged(uid_t uid, NERtcVideoStreamType type, uint32_t width, uint32_t height)
Definition nertc_channel_event_handler.h:769
virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned)
Definition nertc_channel_event_handler.h:1268
virtual void onLeaveChannel(NERtcErrorCode result)
Definition nertc_channel_event_handler.h:203
virtual void onScreenCaptureStatus(NERtcScreenCaptureStatus status)
Definition nertc_channel_event_handler.h:646
virtual void onUserJoined(uid_t uid, const char *user_name, NERtcUserJoinExtraInfo join_extra_info)
Definition nertc_channel_event_handler.h:323
virtual void onUpdateLiveStreamTask(const char *task_id, const char *url, int error_code)
Definition nertc_channel_event_handler.h:1070
virtual void onPermissionKeyWillExpire()
Definition nertc_channel_event_handler.h:1284
virtual void onRecvSEIMsg(uid_t uid, const char *data, uint32_t dataSize)
Definition nertc_channel_event_handler.h:1146
virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume)
Definition nertc_channel_event_handler.h:1015
virtual void onUserSubStreamAudioStart(uid_t uid)
Definition nertc_channel_event_handler.h:471
virtual void onConnectionStateChange(NERtcConnectionStateType state, NERtcReasonConnectionChangedType reason)
Definition nertc_channel_event_handler.h:160
virtual void onUserLeft(uid_t uid, NERtcSessionLeaveReason reason, NERtcUserJoinExtraInfo leave_extra_info)
Definition nertc_channel_event_handler.h:404
virtual void onLabFeatureCallback(const char *key, const char *param)
Definition nertc_channel_event_handler.h:1332
virtual void onUserSubStreamAudioMute(uid_t uid, bool mute)
Definition nertc_channel_event_handler.h:504
virtual void onUserVideoStart(uid_t uid, NERtcVideoProfileType max_profile)
Definition nertc_channel_event_handler.h:522
virtual void onFirstVideoDataReceived(NERtcVideoStreamType type, uid_t uid)
Definition nertc_channel_event_handler.h:726
virtual void onUserVideoStop(uid_t uid)
Definition nertc_channel_event_handler.h:538
virtual void onFirstVideoDataReceived(uid_t uid)
Definition nertc_channel_event_handler.h:697
virtual void onRemoveLiveStreamTask(const char *task_id, int error_code)
Definition nertc_channel_event_handler.h:1095
virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type)
Definition nertc_channel_event_handler.h:1214
virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute)
Definition nertc_channel_event_handler.h:593
virtual void onFirstAudioFrameDecoded(uid_t uid)
Definition nertc_channel_event_handler.h:826
virtual void onError(int error_code, const char *msg)
Definition nertc_channel_event_handler.h:53
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type)
Definition nertc_channel_event_handler.h:1241
virtual void onClientRoleChanged(NERtcClientRole oldRole, NERtcClientRole newRole)
Definition nertc_channel_event_handler.h:249
virtual void onUserSubStreamAudioStop(uid_t uid)
Definition nertc_channel_event_handler.h:484
virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height)
Definition nertc_channel_event_handler.h:848
virtual void onReconnectingStart(channel_id_t cid, uid_t uid)
Definition nertc_channel_event_handler.h:139
virtual void onLocalAudioVolumeIndication(int volume)
Definition nertc_channel_event_handler.h:963
virtual void onApiCallExecuted(const char *api_name, NERtcErrorCode error, const char *message)
Definition nertc_channel_event_handler.h:94
virtual void onRejoinChannel(channel_id_t cid, uid_t uid, NERtcErrorCode result, uint64_t elapsed)
Definition nertc_channel_event_handler.h:184
virtual void onDisconnect(NERtcErrorCode reason)
Definition nertc_channel_event_handler.h:224
virtual void onUserVideoMute(uid_t uid, bool mute)
Definition nertc_channel_event_handler.h:558
virtual void onFirstAudioDataReceived(uid_t uid)
Definition nertc_channel_event_handler.h:679
virtual void onUpdatePermissionKey(const char *key, NERtcErrorCode error, int timeout)
Definition nertc_channel_event_handler.h:1318
virtual void onUserLeft(uid_t uid, NERtcSessionLeaveReason reason)
Definition nertc_channel_event_handler.h:353
virtual void onUserAudioMute(uid_t uid, bool mute)
Definition nertc_channel_event_handler.h:454
virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad)
Definition nertc_channel_event_handler.h:985
virtual void onJoinChannel(channel_id_t cid, uid_t uid, NERtcErrorCode result, uint64_t elapsed)
Definition nertc_channel_event_handler.h:117
virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char *channel_name)
Definition nertc_channel_event_handler.h:1166
NERtcClientRole
Definition nertc_engine_defines.h:244
NERtcChannelMediaRelayState
Definition nertc_engine_defines.h:5927
NERtcReasonConnectionChangedType
Definition nertc_engine_defines.h:2369
NERtcVideoStreamType
Definition nertc_engine_defines.h:5838
NERtcSessionLeaveReason
Definition nertc_engine_defines.h:5503
NERtcConnectionStateType
Definition nertc_engine_defines.h:2302
uint64_t uid_t
Definition nertc_engine_defines.h:183
NERtcVideoProfileType
Definition nertc_engine_defines.h:1705
uint64_t channel_id_t
Definition nertc_engine_defines.h:192
NERtcScreenCaptureStatus
Definition nertc_engine_defines.h:3989
NERtcLiveStreamStateCode
Definition nertc_engine_defines.h:1123
NERtcErrorCode
Definition nertc_error_code.h:26
NERtcChannelMediaRelayEvent
Definition nertc_engine_defines.h:5974
The definition of error codes of NERtc SDK.
The definition of error codes of NERtc SDK.
Definition nertc_engine_defines.h:2498
Definition nertc_engine_defines.h:4167