NERTC macOS/Windows SDK V5.9.1
载入中...
搜索中...
未找到
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 (void)status;
95 }
96
114 (void)data;
115 }
116
128 virtual void onUserVideoProfileUpdate(uid_t uid, NERtcVideoProfileType max_profile) {
129 (void)uid;
130 (void)max_profile;
131 }
144 virtual void onUserSubStreamAudioStart(uid_t uid) {
145 (void)uid;
146 }
159 virtual void onUserSubStreamAudioStop(uid_t uid) {
160 (void)uid;
161 }
175 virtual void onUserAudioMute(uid_t uid, bool mute) {
176 (void)uid;
177 (void)mute;
178 }
197 virtual void onUserSubStreamAudioMute(uid_t uid, bool mute) {
198 (void)uid;
199 (void)mute;
200 }
217 virtual void onUserVideoMute(uid_t uid, bool mute) {
218 (void)uid;
219 (void)mute;
220 }
221
252 virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute) {
253 (void)videoStreamType;
254 (void)uid;
255 (void)mute;
256 }
257
272 virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
273 NERtcAudioDeviceType device_type,
274 NERtcAudioDeviceState device_state) {
275 (void)device_id;
276 (void)device_type;
277 (void)device_state;
278 }
279
292 virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength],
293 NERtcAudioDeviceType device_type) {
294 (void)device_id;
295 (void)device_type;
296 }
297
312 virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
313 NERtcVideoDeviceType device_type,
314 NERtcVideoDeviceState device_state) {
315 (void)device_id;
316 (void)device_type;
317 (void)device_state;
318 }
319
330 virtual void onFirstAudioDataReceived(uid_t uid) {
331 (void)uid;
332 }
333
346 virtual void onFirstVideoDataReceived(uid_t uid) {
347 (void)uid;
348 }
349
376 (void)uid;
377 (void)type;
378 }
379
418 virtual void onRemoteVideoReceiveSizeChanged(uid_t uid, NERtcVideoStreamType type, uint32_t width, uint32_t height) {
419 (void)uid;
420 (void)type;
421 (void)width;
422 (void)height;
423 }
424
458 virtual void onLocalVideoRenderSizeChanged(NERtcVideoStreamType type, uint32_t width, uint32_t height) {
459 (void)type;
460 (void)width;
461 (void)height;
462 }
463
474 virtual void onFirstAudioFrameDecoded(uid_t uid) {
475 (void)uid;
476 }
477
495 virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height) {
496 (void)uid;
497 (void)width;
498 (void)height;
499 }
500
540 virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height) {
541 (void)type;
542 (void)uid;
543 (void)width;
544 (void)height;
545 }
546
587 virtual void onFirstVideoFrameRender(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height, uint64_t elapsed) {
588 (void)type;
589 (void)uid;
590 (void)width;
591 (void)height;
592 (void)elapsed;
593 }
594
621 virtual void onCaptureVideoFrame(void *data,
622 NERtcVideoType type,
623 uint32_t width,
624 uint32_t height,
625 uint32_t count,
626 uint32_t offset[kNERtcMaxPlaneCount],
627 uint32_t stride[kNERtcMaxPlaneCount],
628 NERtcVideoRotation rotation) {
629 (void)data;
630 (void)type;
631 (void)width;
632 (void)height;
633 (void)count;
634 (void)offset;
635 (void)stride;
636 (void)rotation;
637 }
638
651 (void)frame;
652 }
653
675 (void)state;
676 (void)error_code;
677 }
678
691 virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms) {
692 (void)timestamp_ms;
693 }
694
729 virtual void onAudioEffectTimestampUpdate(uint32_t effect_id, uint64_t timestamp_ms) {
730 (void)effect_id;
731 (void)timestamp_ms;
732 }
733
746 virtual void onAudioEffectFinished(uint32_t effect_id) {
747 (void)effect_id;
748 }
749
768 virtual void onLocalAudioVolumeIndication(int volume) {
769 (void)volume;
770 }
771
790 virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad) {
791 (void)volume;
792 (void)enable_vad;
793 }
794
819 virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume) {
820 (void)speakers;
821 (void)speaker_number;
822 (void)total_volume;
823 }
824
845 virtual void onAddLiveStreamTask(const char* task_id, const char* url, int error_code) {
846 (void)task_id;
847 (void)url;
848 (void)error_code;
849 }
850
871 virtual void onUpdateLiveStreamTask(const char* task_id, const char* url, int error_code) {
872 (void)task_id;
873 (void)url;
874 (void)error_code;
875 }
876
895 virtual void onRemoveLiveStreamTask(const char* task_id, int error_code) {
896 (void)task_id;
897 (void)error_code;
898 }
899
922 virtual void onLiveStreamState(const char* task_id, const char* url, NERtcLiveStreamStateCode state) {
923 (void)task_id;
924 (void)url;
925 (void)state;
926 }
927
950 virtual void onAudioHowling(bool howling) {
951 (void)howling;
952 }
953
970 virtual void onRecvSEIMsg(uid_t uid, const char* data, uint32_t dataSize) {
971 (void)uid;
972 (void)data;
973 (void)dataSize;
974 }
975
988 virtual void onAudioRecording(NERtcAudioRecordingCode code, const char* file_path) {
989 (void)code;
990 (void)file_path;
991 }
992
1007 virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char* channel_name) {
1008 (void)state;
1009 (void)channel_name;
1010 }
1011
1028 virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char* channel_name, NERtcErrorCode error) {
1029 (void)event;
1030 (void)channel_name;
1031 (void)error;
1032 }
1033
1054 virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type) {
1055 (void)is_fallback;
1056 (void)stream_type;
1057 }
1058
1081 virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type) {
1082 (void)uid;
1083 (void)is_fallback;
1084 (void)stream_type;
1085 }
1086
1103 (void)quality;
1104 }
1105
1123 (void)result;
1124 };
1125
1148 virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned) {
1149 (void)is_audio_banned;
1150 (void)is_video_banned;
1151 }
1152
1166 (void)result;
1167 }
1168
1195 (void)enabled;
1196 (void)reason;
1197 }
1198
1216 (void)videoStreamType;
1217 (void)state;
1218 }
1219
1242
1281 virtual void onUpdatePermissionKey(const char* key, NERtcErrorCode error, int timeout) {
1282 (void)key;
1283 (void)error;
1284 (void)timeout;
1285 }
1286
1301 virtual void onUserDataReceiveMessage(uid_t uid, void* pData, uint64_t size) {
1302 (void)uid;
1303 (void)pData;
1304 (void)size;
1305 };
1306
1319 virtual void onUserDataStart(uid_t uid){
1320 (void)uid;
1321 };
1322
1333 virtual void onUserDataStop(uid_t uid) {
1334 (void)uid;
1335 };
1336
1347 virtual void onUserDataStateChanged(uid_t uid) {
1348 (void)uid;
1349 };
1350
1363 virtual void onUserDataBufferedAmountChanged(uid_t uid, uint64_t previousAmount) {
1364 (void)uid;
1365 (void)previousAmount;
1366 };
1367
1376 virtual void onLabFeatureCallback(const char* key, const char* param) {
1377 (void)key;
1378 (void)param;
1379 }
1380
1389 virtual void onAiData(const char* type, const char* data) {
1390 (void)type;
1391 (void)data;
1392 }
1393
1407 (void)newConnectionType;
1408 }
1409
1463 (void)result;
1464 (void)cid;
1465 }
1483 (void)result;
1484 }
1485
1503 (void)reason;
1504 }
1505
1521
1540 virtual void onPlayStreamingStarted(const char* stream_id, NERtcErrorCode result) {
1541 (void)stream_id;
1542 (void)result;
1543 }
1544
1562 virtual void onPlayStreamingReconnectedSuccess(const char* stream_id) {
1563 (void)stream_id;
1564 }
1565
1584 virtual void onPlayStreamingReconnecting(const char* stream_id, NERtcErrorCode reason) {
1585 (void)stream_id;
1586 (void)reason;
1587 }
1588
1607 virtual void onPlayStreamingStopped(const char* stream_id, NERtcErrorCode error) {
1608 (void)stream_id;
1609 (void)error;
1610 }
1611
1630 virtual void onPlayStreamingReceiveSeiMessage(const char* stream_id, const char* message) {
1631 (void)stream_id;
1632 (void)message;
1633 }
1634
1647 virtual void onLocalRecorderStatus(NERtcLocalRecorderStatus status, const char* task_id) {
1648 (void)status;
1649 (void)task_id;
1650 }
1651
1664 virtual void onLocalRecorderError(NERtcLocalRecorderError error, const char* task_id) {
1665 (void)error;
1666 (void)task_id;
1667 }
1668
1700 virtual void onAsrCaptionStateChanged(NERtcAsrCaptionState state, int code, const char* message) {
1701 (void)state;
1702 (void)code;
1703 (void)message;
1704 }
1705
1735 virtual void onAsrCaptionResult(const NERtcAsrCaptionResult *results, unsigned int result_count) {
1736 (void)results;
1737 (void)result_count;
1738 }
1739};
1740} // namespace nertc
1741
1742#endif
定义 nertc_engine_event_handler_ex.h:31
virtual void onLastmileQuality(NERtcNetworkQualityType quality)
定义 nertc_engine_event_handler_ex.h:1102
virtual void onFirstVideoFrameRender(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height, uint64_t elapsed)
定义 nertc_engine_event_handler_ex.h:587
virtual void onAudioRecording(NERtcAudioRecordingCode code, const char *file_path)
定义 nertc_engine_event_handler_ex.h:988
virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:495
virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type)
定义 nertc_engine_event_handler_ex.h:1054
virtual void onAsrCaptionStateChanged(NERtcAsrCaptionState state, int code, const char *message)
定义 nertc_engine_event_handler_ex.h:1700
virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned)
定义 nertc_engine_event_handler_ex.h:1148
virtual void onRemoveLiveStreamTask(const char *task_id, int error_code)
定义 nertc_engine_event_handler_ex.h:895
virtual void onFirstAudioFrameDecoded(uid_t uid)
定义 nertc_engine_event_handler_ex.h:474
virtual void onStartPushStreaming(NERtcErrorCode result, channel_id_t cid)
定义 nertc_engine_event_handler_ex.h:1462
virtual void onAudioMixingStateChanged(NERtcAudioMixingState state, NERtcAudioMixingErrorCode error_code)
定义 nertc_engine_event_handler_ex.h:674
virtual void onUserAudioMute(uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:175
virtual void onAudioHowling(bool howling)
定义 nertc_engine_event_handler_ex.h:950
virtual void onPushStreamingReconnectedSuccess()
定义 nertc_engine_event_handler_ex.h:1520
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type)
定义 nertc_engine_event_handler_ex.h:1081
virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:540
virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:252
virtual void onFirstVideoDataReceived(uid_t uid)
定义 nertc_engine_event_handler_ex.h:346
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:1241
virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char *channel_name, NERtcErrorCode error)
定义 nertc_engine_event_handler_ex.h:1028
virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcVideoDeviceType device_type, NERtcVideoDeviceState device_state)
定义 nertc_engine_event_handler_ex.h:312
virtual void onLastmileProbeResult(const NERtcLastmileProbeResult &result)
定义 nertc_engine_event_handler_ex.h:1122
virtual void onUpdateLiveStreamTask(const char *task_id, const char *url, int error_code)
定义 nertc_engine_event_handler_ex.h:871
virtual void onStopPushStreaming(NERtcErrorCode result)
定义 nertc_engine_event_handler_ex.h:1482
virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume)
定义 nertc_engine_event_handler_ex.h:819
virtual void onFirstVideoDataReceived(NERtcVideoStreamType type, uid_t uid)
定义 nertc_engine_event_handler_ex.h:375
virtual void onVirtualBackgroundSourceEnabled(bool enabled, NERtcVirtualBackgroundSourceStateReason reason)
定义 nertc_engine_event_handler_ex.h:1194
virtual void onUserDataStateChanged(uid_t uid)
定义 nertc_engine_event_handler_ex.h:1347
virtual void onCaptureVideoFrame2(const NERtcVideoCallbackFrame &frame)
定义 nertc_engine_event_handler_ex.h:650
virtual void onUserDataReceiveMessage(uid_t uid, void *pData, uint64_t size)
定义 nertc_engine_event_handler_ex.h:1301
virtual void onPlayStreamingReceiveSeiMessage(const char *stream_id, const char *message)
定义 nertc_engine_event_handler_ex.h:1630
virtual void onCheckNECastAudioDriverResult(NERtcInstallCastAudioDriverResult result)
定义 nertc_engine_event_handler_ex.h:1165
virtual void onAudioEffectFinished(uint32_t effect_id)
定义 nertc_engine_event_handler_ex.h:746
virtual void onAiData(const char *type, const char *data)
定义 nertc_engine_event_handler_ex.h:1389
virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad)
定义 nertc_engine_event_handler_ex.h:790
virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type)
定义 nertc_engine_event_handler_ex.h:292
virtual void onScreenCaptureStatus(NERtcScreenCaptureStatus status)
定义 nertc_engine_event_handler_ex.h:93
virtual void onLocalAudioVolumeIndication(int volume)
定义 nertc_engine_event_handler_ex.h:768
virtual void onRecvSEIMsg(uid_t uid, const char *data, uint32_t dataSize)
定义 nertc_engine_event_handler_ex.h:970
virtual void onPlayStreamingStarted(const char *stream_id, NERtcErrorCode result)
定义 nertc_engine_event_handler_ex.h:1540
virtual void onLocalVideoRenderSizeChanged(NERtcVideoStreamType type, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:458
virtual void onUserDataStop(uid_t uid)
定义 nertc_engine_event_handler_ex.h:1333
virtual void onUserDataStart(uid_t uid)
定义 nertc_engine_event_handler_ex.h:1319
virtual void onAudioEffectTimestampUpdate(uint32_t effect_id, uint64_t timestamp_ms)
定义 nertc_engine_event_handler_ex.h:729
virtual void onLocalRecorderStatus(NERtcLocalRecorderStatus status, const char *task_id)
定义 nertc_engine_event_handler_ex.h:1647
virtual void onPushStreamingChangeToReconnecting(NERtcErrorCode reason)
定义 nertc_engine_event_handler_ex.h:1502
virtual void onPlayStreamingStopped(const char *stream_id, NERtcErrorCode error)
定义 nertc_engine_event_handler_ex.h:1607
virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type, NERtcAudioDeviceState device_state)
定义 nertc_engine_event_handler_ex.h:272
virtual void onPlayStreamingReconnectedSuccess(const char *stream_id)
定义 nertc_engine_event_handler_ex.h:1562
virtual void onPlayStreamingReconnecting(const char *stream_id, NERtcErrorCode reason)
定义 nertc_engine_event_handler_ex.h:1584
virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char *channel_name)
定义 nertc_engine_event_handler_ex.h:1007
virtual void onLiveStreamState(const char *task_id, const char *url, NERtcLiveStreamStateCode state)
定义 nertc_engine_event_handler_ex.h:922
virtual void onUpdatePermissionKey(const char *key, NERtcErrorCode error, int timeout)
定义 nertc_engine_event_handler_ex.h:1281
virtual void onUserSubStreamAudioStop(uid_t uid)
定义 nertc_engine_event_handler_ex.h:159
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:144
virtual void onUserSubStreamAudioMute(uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:197
virtual void onUserVideoMute(uid_t uid, bool mute)
定义 nertc_engine_event_handler_ex.h:217
virtual void onAddLiveStreamTask(const char *task_id, const char *url, int error_code)
定义 nertc_engine_event_handler_ex.h:845
virtual void onLabFeatureCallback(const char *key, const char *param)
定义 nertc_engine_event_handler_ex.h:1376
virtual void onFirstAudioDataReceived(uid_t uid)
定义 nertc_engine_event_handler_ex.h:330
virtual void onLocalVideoWatermarkState(NERtcVideoStreamType videoStreamType, NERtcLocalVideoWatermarkState state)
定义 nertc_engine_event_handler_ex.h:1215
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:621
virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms)
定义 nertc_engine_event_handler_ex.h:691
virtual void onNetworkConnectionTypeChanged(NERtcNetworkConnectionType newConnectionType)
定义 nertc_engine_event_handler_ex.h:1406
virtual void onAsrCaptionResult(const NERtcAsrCaptionResult *results, unsigned int result_count)
定义 nertc_engine_event_handler_ex.h:1735
virtual void onRemoteVideoReceiveSizeChanged(uid_t uid, NERtcVideoStreamType type, uint32_t width, uint32_t height)
定义 nertc_engine_event_handler_ex.h:418
virtual void onLocalRecorderError(NERtcLocalRecorderError error, const char *task_id)
定义 nertc_engine_event_handler_ex.h:1664
virtual void onUserDataBufferedAmountChanged(uid_t uid, uint64_t previousAmount)
定义 nertc_engine_event_handler_ex.h:1363
virtual void onUserVideoProfileUpdate(uid_t uid, NERtcVideoProfileType max_profile)
定义 nertc_engine_event_handler_ex.h:128
virtual void onScreenCaptureSourceDataUpdate(NERtcScreenCaptureSourceData data)
定义 nertc_engine_event_handler_ex.h:113
定义 nertc_engine_event_handler.h:33
namespace nertc
NERtcLocalVideoWatermarkState
定义 nertc_engine_defines.h:6653
NERtcAudioDeviceState
定义 nertc_engine_defines.h:2069
NERtcLocalRecorderError
定义 nertc_engine_defines.h:9280
NERtcLocalRecorderStatus
定义 nertc_engine_defines.h:9219
NERtcNetworkConnectionType
定义 nertc_engine_defines.h:2719
NERtcChannelMediaRelayState
定义 nertc_engine_defines.h:6426
NERtcVideoStreamType
定义 nertc_engine_defines.h:6289
NERtcAudioDeviceType
定义 nertc_engine_defines.h:2031
uint64_t uid_t
定义 nertc_engine_defines.h:192
NERtcVideoRotation
定义 nertc_engine_defines.h:5649
NERtcVideoProfileType
定义 nertc_engine_defines.h:1917
NERtcAudioMixingErrorCode
定义 nertc_error_code.h:961
NERtcVideoDeviceState
定义 nertc_engine_defines.h:2363
uint64_t channel_id_t
定义 nertc_engine_defines.h:201
NERtcScreenCaptureStatus
定义 nertc_engine_defines.h:4352
NERtcAsrCaptionState
定义 nertc_engine_defines.h:9683
NERtcVideoType
定义 nertc_engine_defines.h:5575
NERtcAudioRecordingCode
定义 nertc_engine_defines.h:7646
NERtcNetworkQualityType
定义 nertc_engine_defines.h:3720
NERtcLiveStreamStateCode
定义 nertc_engine_defines.h:1132
NERtcVirtualBackgroundSourceStateReason
定义 nertc_engine_defines.h:8104
NERtcInstallCastAudioDriverResult
定义 nertc_engine_defines.h:8064
NERtcAudioMixingState
定义 nertc_engine_defines.h:6011
NERtcErrorCode
定义 nertc_error_code.h:26
NERtcVideoDeviceType
定义 nertc_engine_defines.h:2334
NERtcChannelMediaRelayEvent
定义 nertc_engine_defines.h:6473
NERtc SDK definitions.
#define kNERtcMaxPlaneCount
定义 nertc_engine_defines.h:28
#define kNERtcMaxDeviceIDLength
定义 nertc_engine_defines.h:70
The interface header file of expansion callback of the NERTC SDK. All parameter descriptions of the N...
定义 nertc_engine_defines.h:9790
定义 nertc_engine_defines.h:2814
定义 nertc_engine_defines.h:7996
定义 nertc_engine_defines.h:4543
定义 nertc_engine_defines.h:4248