NERTC macOS/Windows SDK V5.6.40
载入中...
搜索中...
未找到
nertc_engine_event_handler_ex.h
浏览该文件的文档.
1
7#ifndef NERTC_ENGINE_EVENT_HANDLER_EX_H
8#define NERTC_ENGINE_EVENT_HANDLER_EX_H
9
10#include "nertc_base_types.h"
13
18namespace nertc
19{
31{
32public:
33 virtual ~IRtcEngineEventHandlerEx() {}
34
48 virtual void onUserSubStreamVideoStart(uid_t uid, NERtcVideoProfileType max_profile) {
49 (void)uid;
50 (void)max_profile;
51 }
52
53 virtual void onUserVideoStreamStart(uid_t uid, NERtcVideoStreamType stream_type, NERtcVideoProfileType max_profile) {
54 (void)uid;
55 (void)stream_type;
56 (void)max_profile;
57 }
69 virtual void onUserSubStreamVideoStop(uid_t uid) {
70 (void)uid;
71 }
72
73 virtual void onUserVideoStreamStop(uid_t uid, NERtcVideoStreamType stream_type) {
74 (void)uid;
75 (void)stream_type;
76 }
77
94
112
124 virtual void onUserVideoProfileUpdate(uid_t uid, NERtcVideoProfileType max_profile) {
125 (void)uid;
126 (void)max_profile;
127 }
140 virtual void onUserSubStreamAudioStart(uid_t uid) {
141 (void)uid;
142 }
155 virtual void onUserSubStreamAudioStop(uid_t uid) {
156 (void)uid;
157 }
171 virtual void onUserAudioMute(uid_t uid, bool mute) {
172 (void)uid;
173 (void)mute;
174 }
193 virtual void onUserSubStreamAudioMute(uid_t uid, bool mute) {
194 (void)uid;
195 (void)mute;
196 }
213 virtual void onUserVideoMute(uid_t uid, bool mute) {
214 (void)uid;
215 (void)mute;
216 }
217
248 virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute) {
249 (void)videoStreamType;
250 (void)uid;
251 (void)mute;
252 }
253
268 virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
269 NERtcAudioDeviceType device_type,
270 NERtcAudioDeviceState device_state) {
271 (void)device_id;
272 (void)device_type;
273 (void)device_state;
274 }
275
288 virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength],
289 NERtcAudioDeviceType device_type) {
290 (void)device_id;
291 (void)device_type;
292 }
293
308 virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
309 NERtcVideoDeviceType device_type,
310 NERtcVideoDeviceState device_state) {
311 (void)device_id;
312 (void)device_type;
313 (void)device_state;
314 }
315
326 virtual void onFirstAudioDataReceived(uid_t uid) {
327 (void)uid;
328 }
329
342 virtual void onFirstVideoDataReceived(uid_t uid) {
343 (void)uid;
344 }
345
372 (void)uid;
373 (void)type;
374 }
375
414 virtual void onRemoteVideoReceiveSizeChanged(uid_t uid, NERtcVideoStreamType type, uint32_t width, uint32_t height) {
415 (void)uid;
416 (void)type;
417 (void)width;
418 (void)height;
419 }
420
454 virtual void onLocalVideoRenderSizeChanged(NERtcVideoStreamType type, uint32_t width, uint32_t height) {
455 (void)type;
456 (void)width;
457 (void)height;
458 }
459
470 virtual void onFirstAudioFrameDecoded(uid_t uid) {
471 (void)uid;
472 }
473
491 virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height) {
492 (void)uid;
493 (void)width;
494 (void)height;
495 }
496
536 virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height) {
537 (void)type;
538 (void)uid;
539 (void)width;
540 (void)height;
541 }
542
583 virtual void onFirstVideoFrameRender(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height, uint64_t elapsed) {
584 (void)type;
585 (void)uid;
586 (void)width;
587 (void)height;
588 (void)elapsed;
589 }
590
617 virtual void onCaptureVideoFrame(void *data,
618 NERtcVideoType type,
619 uint32_t width,
620 uint32_t height,
621 uint32_t count,
622 uint32_t offset[kNERtcMaxPlaneCount],
623 uint32_t stride[kNERtcMaxPlaneCount],
624 NERtcVideoRotation rotation) {
625 (void)data;
626 (void)type;
627 (void)width;
628 (void)height;
629 (void)count;
630 (void)offset;
631 (void)stride;
632 (void)rotation;
633 }
634
656 (void)state;
657 (void)error_code;
658 }
659
672 virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms) {
673 (void)timestamp_ms;
674 }
675
710 virtual void onAudioEffectTimestampUpdate(uint32_t effect_id, uint64_t timestamp_ms) {
711 (void)effect_id;
712 (void)timestamp_ms;
713 }
714
727 virtual void onAudioEffectFinished(uint32_t effect_id) {
728 (void)effect_id;
729 }
730
749 virtual void onLocalAudioVolumeIndication(int volume) {
750 (void)volume;
751 }
752
771 virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad) {
772 (void)volume;
773 (void)enable_vad;
774 }
775
800 virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume) {
801 (void)speakers;
802 (void)speaker_number;
803 (void)total_volume;
804 }
805
826 virtual void onAddLiveStreamTask(const char* task_id, const char* url, int error_code) {
827 (void)task_id;
828 (void)url;
829 (void)error_code;
830 }
831
852 virtual void onUpdateLiveStreamTask(const char* task_id, const char* url, int error_code) {
853 (void)task_id;
854 (void)url;
855 (void)error_code;
856 }
857
876 virtual void onRemoveLiveStreamTask(const char* task_id, int error_code) {
877 (void)task_id;
878 (void)error_code;
879 }
880
903 virtual void onLiveStreamState(const char* task_id, const char* url, NERtcLiveStreamStateCode state) {
904 (void)task_id;
905 (void)url;
906 (void)state;
907 }
908
931 virtual void onAudioHowling(bool howling) {
932 (void)howling;
933 }
934
951 virtual void onRecvSEIMsg(uid_t uid, const char* data, uint32_t dataSize) {
952 (void)uid;
953 (void)data;
954 (void)dataSize;
955 }
956
969 virtual void onAudioRecording(NERtcAudioRecordingCode code, const char* file_path) {
970 (void)code;
971 (void)file_path;
972 }
973
988 virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char* channel_name) {
989 (void)state;
990 (void)channel_name;
991 }
992
1009 virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char* channel_name, NERtcErrorCode error) {
1010 (void)event;
1011 (void)channel_name;
1012 (void)error;
1013 }
1014
1035 virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type) {
1036 (void)is_fallback;
1037 }
1038
1061 virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type) {
1062 (void)uid;
1063 (void)is_fallback;
1064 }
1065
1082 (void)quality;
1083 }
1084
1102 (void)result;
1103 };
1104
1127 virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned) {
1128 (void)is_audio_banned;
1129 (void)is_video_banned;
1130 }
1131
1145 (void)result;
1146 }
1147
1174 (void)enabled;
1175 (void)reason;
1176 }
1177
1195 (void)videoStreamType;
1196 (void)state;
1197 }
1198
1221
1260 virtual void onUpdatePermissionKey(const char* key, NERtcErrorCode error, int timeout) {
1261 (void)key;
1262 (void)error;
1263 (void)timeout;
1264 }
1265
1280 virtual void onUserDataReceiveMessage(uid_t uid, void* pData, uint64_t size) {
1281 (void)uid;
1282 (void)pData;
1283 (void)size;
1284 };
1285
1298 virtual void onUserDataStart(uid_t uid){
1299 (void)uid;
1300 };
1301
1312 virtual void onUserDataStop(uid_t uid) {
1313 (void)uid;
1314 };
1315
1326 virtual void onUserDataStateChanged(uid_t uid) {
1327 (void)uid;
1328 };
1329
1342 virtual void onUserDataBufferedAmountChanged(uid_t uid, uint64_t previousAmount) {
1343 (void)uid;
1344 (void)previousAmount;
1345 };
1346
1355 virtual void onLabFeatureCallback(const char* key, const char* param) {
1356 (void)key;
1357 (void)param;
1358 }
1359
1373 (void)newConnectionType;
1374 }
1375
1429 (void)result;
1430 (void)cid;
1431 }
1449 (void)result;
1450 }
1451
1469 (void)reason;
1470 }
1471
1487
1500 virtual void onLocalRecorderStatus(NERtcLocalRecorderStatus status, const char* task_id) {
1501 (void)status;
1502 (void)task_id;
1503 }
1504
1517 virtual void onLocalRecorderError(NERtcLocalRecorderError error, const char* task_id) {
1518 (void)error;
1519 (void)task_id;
1520 }
1521};
1522} // namespace nertc
1523
1524#endif
定义 nertc_engine_event_handler_ex.h:31
virtual void onLastmileQuality(NERtcNetworkQualityType quality)
定义 nertc_engine_event_handler_ex.h:1081
virtual void onFirstVideoFrameRender(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height, uint64_t elapsed)
定义 nertc_engine_event_handler_ex.h:583
virtual void onAudioRecording(NERtcAudioRecordingCode code, const char *file_path)
定义 nertc_engine_event_handler_ex.h:969
virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:491
virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type)
定义 nertc_engine_event_handler_ex.h:1035
virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned)
定义 nertc_engine_event_handler_ex.h:1127
virtual void onRemoveLiveStreamTask(const char *task_id, int error_code)
定义 nertc_engine_event_handler_ex.h:876
virtual void onFirstAudioFrameDecoded(uid_t uid)
定义 nertc_engine_event_handler_ex.h:470
virtual void onStartPushStreaming(NERtcErrorCode result, channel_id_t cid)
定义 nertc_engine_event_handler_ex.h:1428
virtual void onAudioMixingStateChanged(NERtcAudioMixingState state, NERtcAudioMixingErrorCode error_code)
定义 nertc_engine_event_handler_ex.h:655
virtual void onUserAudioMute(uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:171
virtual void onAudioHowling(bool howling)
定义 nertc_engine_event_handler_ex.h:931
virtual void onPushStreamingReconnectedSuccess()
定义 nertc_engine_event_handler_ex.h:1486
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type)
定义 nertc_engine_event_handler_ex.h:1061
virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:536
virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:248
virtual void onFirstVideoDataReceived(uid_t uid)
定义 nertc_engine_event_handler_ex.h:342
virtual void onUserSubStreamVideoStart(uid_t uid, NERtcVideoProfileType max_profile)
定义 nertc_engine_event_handler_ex.h:48
virtual void onPermissionKeyWillExpire()
定义 nertc_engine_event_handler_ex.h:1220
virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char *channel_name, NERtcErrorCode error)
定义 nertc_engine_event_handler_ex.h:1009
virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcVideoDeviceType device_type, NERtcVideoDeviceState device_state)
定义 nertc_engine_event_handler_ex.h:308
virtual void onLastmileProbeResult(const NERtcLastmileProbeResult &result)
定义 nertc_engine_event_handler_ex.h:1101
virtual void onUpdateLiveStreamTask(const char *task_id, const char *url, int error_code)
定义 nertc_engine_event_handler_ex.h:852
virtual void onStopPushStreaming(NERtcErrorCode result)
定义 nertc_engine_event_handler_ex.h:1448
virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume)
定义 nertc_engine_event_handler_ex.h:800
virtual void onFirstVideoDataReceived(NERtcVideoStreamType type, uid_t uid)
定义 nertc_engine_event_handler_ex.h:371
virtual void onVirtualBackgroundSourceEnabled(bool enabled, NERtcVirtualBackgroundSourceStateReason reason)
定义 nertc_engine_event_handler_ex.h:1173
virtual void onUserDataStateChanged(uid_t uid)
定义 nertc_engine_event_handler_ex.h:1326
virtual void onUserDataReceiveMessage(uid_t uid, void *pData, uint64_t size)
定义 nertc_engine_event_handler_ex.h:1280
virtual void onCheckNECastAudioDriverResult(NERtcInstallCastAudioDriverResult result)
定义 nertc_engine_event_handler_ex.h:1144
virtual void onAudioEffectFinished(uint32_t effect_id)
定义 nertc_engine_event_handler_ex.h:727
virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad)
定义 nertc_engine_event_handler_ex.h:771
virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type)
定义 nertc_engine_event_handler_ex.h:288
virtual void onScreenCaptureStatus(NERtcScreenCaptureStatus status)
定义 nertc_engine_event_handler_ex.h:93
virtual void onLocalAudioVolumeIndication(int volume)
定义 nertc_engine_event_handler_ex.h:749
virtual void onRecvSEIMsg(uid_t uid, const char *data, uint32_t dataSize)
定义 nertc_engine_event_handler_ex.h:951
virtual void onLocalVideoRenderSizeChanged(NERtcVideoStreamType type, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:454
virtual void onUserDataStop(uid_t uid)
定义 nertc_engine_event_handler_ex.h:1312
virtual void onUserDataStart(uid_t uid)
定义 nertc_engine_event_handler_ex.h:1298
virtual void onAudioEffectTimestampUpdate(uint32_t effect_id, uint64_t timestamp_ms)
定义 nertc_engine_event_handler_ex.h:710
virtual void onLocalRecorderStatus(NERtcLocalRecorderStatus status, const char *task_id)
定义 nertc_engine_event_handler_ex.h:1500
virtual void onPushStreamingChangeToReconnecting(NERtcErrorCode reason)
定义 nertc_engine_event_handler_ex.h:1468
virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type, NERtcAudioDeviceState device_state)
定义 nertc_engine_event_handler_ex.h:268
virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char *channel_name)
定义 nertc_engine_event_handler_ex.h:988
virtual void onLiveStreamState(const char *task_id, const char *url, NERtcLiveStreamStateCode state)
定义 nertc_engine_event_handler_ex.h:903
virtual void onUpdatePermissionKey(const char *key, NERtcErrorCode error, int timeout)
定义 nertc_engine_event_handler_ex.h:1260
virtual void onUserSubStreamAudioStop(uid_t uid)
定义 nertc_engine_event_handler_ex.h:155
virtual void onUserSubStreamVideoStop(uid_t uid)
定义 nertc_engine_event_handler_ex.h:69
virtual void onUserSubStreamAudioStart(uid_t uid)
定义 nertc_engine_event_handler_ex.h:140
virtual void onUserSubStreamAudioMute(uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:193
virtual void onUserVideoMute(uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:213
virtual void onAddLiveStreamTask(const char *task_id, const char *url, int error_code)
定义 nertc_engine_event_handler_ex.h:826
virtual void onLabFeatureCallback(const char *key, const char *param)
定义 nertc_engine_event_handler_ex.h:1355
virtual void onFirstAudioDataReceived(uid_t uid)
定义 nertc_engine_event_handler_ex.h:326
virtual void onLocalVideoWatermarkState(NERtcVideoStreamType videoStreamType, NERtcLocalVideoWatermarkState state)
定义 nertc_engine_event_handler_ex.h:1194
virtual void onCaptureVideoFrame(void *data, NERtcVideoType type, uint32_t width, uint32_t height, uint32_t count, uint32_t offset[kNERtcMaxPlaneCount], uint32_t stride[kNERtcMaxPlaneCount], NERtcVideoRotation rotation)
定义 nertc_engine_event_handler_ex.h:617
virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms)
定义 nertc_engine_event_handler_ex.h:672
virtual void onNetworkConnectionTypeChanged(NERtcNetworkConnectionType newConnectionType)
定义 nertc_engine_event_handler_ex.h:1372
virtual void onRemoteVideoReceiveSizeChanged(uid_t uid, NERtcVideoStreamType type, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:414
virtual void onLocalRecorderError(NERtcLocalRecorderError error, const char *task_id)
定义 nertc_engine_event_handler_ex.h:1517
virtual void onUserDataBufferedAmountChanged(uid_t uid, uint64_t previousAmount)
定义 nertc_engine_event_handler_ex.h:1342
virtual void onUserVideoProfileUpdate(uid_t uid, NERtcVideoProfileType max_profile)
定义 nertc_engine_event_handler_ex.h:124
virtual void onScreenCaptureSourceDataUpdate(NERtcScreenCaptureSourceData data)
定义 nertc_engine_event_handler_ex.h:111
定义 nertc_engine_event_handler.h:33
namespace nertc
NERtcLocalVideoWatermarkState
定义 nertc_engine_defines.h:6293
NERtcAudioDeviceState
定义 nertc_engine_defines.h:1848
NERtcLocalRecorderError
定义 nertc_engine_defines.h:8754
NERtcLocalRecorderStatus
定义 nertc_engine_defines.h:8740
NERtcNetworkConnectionType
定义 nertc_engine_defines.h:2498
NERtcChannelMediaRelayState
定义 nertc_engine_defines.h:6066
NERtcVideoStreamType
定义 nertc_engine_defines.h:5959
NERtcAudioDeviceType
定义 nertc_engine_defines.h:1810
uint64_t uid_t
定义 nertc_engine_defines.h:183
NERtcVideoRotation
定义 nertc_engine_defines.h:5363
NERtcVideoProfileType
定义 nertc_engine_defines.h:1705
NERtcAudioMixingErrorCode
定义 nertc_error_code.h:961
NERtcVideoDeviceState
定义 nertc_engine_defines.h:2142
uint64_t channel_id_t
定义 nertc_engine_defines.h:192
NERtcScreenCaptureStatus
定义 nertc_engine_defines.h:4092
NERtcVideoType
定义 nertc_engine_defines.h:5289
NERtcAudioRecordingCode
定义 nertc_engine_defines.h:7208
NERtcNetworkQualityType
定义 nertc_engine_defines.h:3499
NERtcLiveStreamStateCode
定义 nertc_engine_defines.h:1123
NERtcVirtualBackgroundSourceStateReason
定义 nertc_engine_defines.h:7666
NERtcInstallCastAudioDriverResult
定义 nertc_engine_defines.h:7626
NERtcAudioMixingState
定义 nertc_engine_defines.h:5681
NERtcErrorCode
定义 nertc_error_code.h:26
NERtcVideoDeviceType
定义 nertc_engine_defines.h:2113
NERtcChannelMediaRelayEvent
定义 nertc_engine_defines.h:6113
NERtc SDK definitions.
#define kNERtcMaxPlaneCount
定义 nertc_engine_defines.h:19
#define kNERtcMaxDeviceIDLength
定义 nertc_engine_defines.h:61
The interface header file of expansion callback of the NERTC SDK. All parameter descriptions of the N...
定义 nertc_engine_defines.h:2593
定义 nertc_engine_defines.h:7558
定义 nertc_engine_defines.h:4270