8 #ifndef NERTC_ENGINE_EVENT_HANDLER_H
9 #define NERTC_ENGINE_EVENT_HANDLER_H
11 #include "nertc_base_types.h"
38 virtual void onError(
int error_code,
const char* msg) {
50 virtual void onWarning(
int warn_code,
const char* msg) {
Definition: nertc_engine_event_handler.h:27
virtual void onUserVideoStart(uid_t uid, NERtcVideoProfileType max_profile)
Definition: nertc_engine_event_handler.h:201
virtual void onJoinChannel(channel_id_t cid, uid_t uid, NERtcErrorCode result, uint64_t elapsed)
Definition: nertc_engine_event_handler.h:73
virtual void onUserAudioStart(uid_t uid)
Definition: nertc_engine_event_handler.h:186
virtual void onUserLeft(uid_t uid, NERtcSessionLeaveReason reason)
Definition: nertc_engine_event_handler.h:178
virtual void onClientRoleChanged(NERtcClientRole oldRole, NERtcClientRole newRole)
Definition: nertc_engine_event_handler.h:152
virtual void onWarning(int warn_code, const char *msg)
Definition: nertc_engine_event_handler.h:50
virtual void onUserJoined(uid_t uid, const char *user_name)
Definition: nertc_engine_event_handler.h:164
virtual void onReleasedHwResources(NERtcErrorCode result)
Definition: nertc_engine_event_handler.h:61
virtual void onRejoinChannel(channel_id_t cid, uid_t uid, NERtcErrorCode result, uint64_t elapsed)
Definition: nertc_engine_event_handler.h:113
virtual void onUserAudioStop(uid_t uid)
Definition: nertc_engine_event_handler.h:193
virtual void onError(int error_code, const char *msg)
Definition: nertc_engine_event_handler.h:38
virtual void onUserVideoStop(uid_t uid)
Definition: nertc_engine_event_handler.h:209
virtual void onLeaveChannel(NERtcErrorCode result)
Definition: nertc_engine_event_handler.h:125
virtual void onConnectionStateChange(NERtcConnectionStateType state, NERtcReasonConnectionChangedType reason)
Definition: nertc_engine_event_handler.h:99
virtual void onReconnectingStart(channel_id_t cid, uid_t uid)
Definition: nertc_engine_event_handler.h:87
virtual void onDisconnect(NERtcErrorCode reason)
Definition: nertc_engine_event_handler.h:137
NERtcClientRole
Definition: nertc_engine_defines.h:43
NERtcReasonConnectionChangedType
Definition: nertc_engine_defines.h:545
NERtcSessionLeaveReason
Definition: nertc_engine_defines.h:1041
NERtcConnectionStateType
Definition: nertc_engine_defines.h:534
uint64_t uid_t
Definition: nertc_engine_defines.h:31
NERtcVideoProfileType
Definition: nertc_engine_defines.h:400
uint64_t channel_id_t
Definition: nertc_engine_defines.h:32
NERtcErrorCode
Definition: nertc_error_code.h:20
The definition of error codes of NERtc SDK.
The definition of error codes of NERtc SDK.