NERtc Windows SDK  V4.6.20
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"
11 #include "nertc_engine_defines.h"
13 
18 namespace nertc
19 {
31 {
32 public:
33  virtual ~IRtcEngineEventHandlerEx() {}
34 
48  virtual void onUserSubStreamVideoStart(uid_t uid, NERtcVideoProfileType max_profile) {
49  (void)uid;
50  (void)max_profile;
51  }
63  virtual void onUserSubStreamVideoStop(uid_t uid) {
64  (void)uid;
65  }
66 
82 
94  virtual void onUserVideoProfileUpdate(uid_t uid, NERtcVideoProfileType max_profile) {
95  (void)uid;
96  (void)max_profile;
97  }
110  virtual void onUserSubStreamAudioStart(uid_t uid) {
111  (void)uid;
112  }
125  virtual void onUserSubStreamAudioStop(uid_t uid) {
126  (void)uid;
127  }
141  virtual void onUserAudioMute(uid_t uid, bool mute) {
142  (void)uid;
143  (void)mute;
144  }
163  virtual void onUserSubStreamAudioMute(uid_t uid, bool mute) {
164  (void)uid;
165  (void)mute;
166  }
183  virtual void onUserVideoMute(uid_t uid, bool mute) {
184  (void)uid;
185  (void)mute;
186  }
187 
218  virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute) {
219  (void)videoStreamType;
220  (void)uid;
221  (void)mute;
222  }
223 
238  virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
239  NERtcAudioDeviceType device_type,
240  NERtcAudioDeviceState device_state) {
241  (void)device_id;
242  (void)device_type;
243  (void)device_state;
244  }
245 
258  virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength],
259  NERtcAudioDeviceType device_type) {
260  (void)device_id;
261  (void)device_type;
262  }
263 
278  virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
279  NERtcVideoDeviceType device_type,
280  NERtcVideoDeviceState device_state) {
281  (void)device_id;
282  (void)device_type;
283  (void)device_state;
284  }
285 
296  virtual void onFirstAudioDataReceived(uid_t uid) {
297  (void)uid;
298  }
299 
312  virtual void onFirstVideoDataReceived(uid_t uid) {
313  (void)uid;
314  }
315 
342  (void)uid;
343  (void)type;
344  }
345 
356  virtual void onFirstAudioFrameDecoded(uid_t uid) {
357  (void)uid;
358  }
359 
377  virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height) {
378  (void)uid;
379  (void)width;
380  (void)height;
381  }
382 
418  virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height) {
419  (void)type;
420  (void)uid;
421  (void)width;
422  (void)height;
423  }
424 
450  virtual void onCaptureVideoFrame(void *data,
451  NERtcVideoType type,
452  uint32_t width,
453  uint32_t height,
454  uint32_t count,
455  uint32_t offset[kNERtcMaxPlaneCount],
456  uint32_t stride[kNERtcMaxPlaneCount],
457  NERtcVideoRotation rotation) {
458  (void)data;
459  (void)type;
460  (void)width;
461  (void)height;
462  (void)count;
463  (void)offset;
464  (void)stride;
465  (void)rotation;
466  }
467 
489  (void)state;
490  (void)error_code;
491  }
492 
505  virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms) {
506  (void)timestamp_ms;
507  }
508 
521  virtual void onAudioEffectFinished(uint32_t effect_id) {
522  (void)effect_id;
523  }
524 
543  virtual void onLocalAudioVolumeIndication(int volume) {
544  (void)volume;
545  }
546 
565  virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad) {
566  (void)volume;
567  (void)enable_vad;
568  }
569 
594  virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume) {
595  (void)speakers;
596  (void)speaker_number;
597  (void)total_volume;
598  }
599 
620  virtual void onAddLiveStreamTask(const char* task_id, const char* url, int error_code) {
621  (void)task_id;
622  (void)url;
623  (void)error_code;
624  }
625 
646  virtual void onUpdateLiveStreamTask(const char* task_id, const char* url, int error_code) {
647  (void)task_id;
648  (void)url;
649  (void)error_code;
650  }
651 
670  virtual void onRemoveLiveStreamTask(const char* task_id, int error_code) {
671  (void)task_id;
672  (void)error_code;
673  }
674 
697  virtual void onLiveStreamState(const char* task_id, const char* url, NERtcLiveStreamStateCode state) {
698  (void)task_id;
699  (void)url;
700  (void)state;
701  }
702 
723  virtual void onAudioHowling(bool howling) {
724  (void)howling;
725  }
726 
743  virtual void onRecvSEIMsg(uid_t uid, const char* data, uint32_t dataSize) {
744  (void)uid;
745  (void)data;
746  (void)dataSize;
747  }
748 
761  virtual void onAudioRecording(NERtcAudioRecordingCode code, const char* file_path) {
762  (void)code;
763  (void)file_path;
764  }
765 
780  virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char* channel_name) {
781  (void)state;
782  (void)channel_name;
783  }
784 
801  virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char* channel_name, NERtcErrorCode error) {
802  (void)event;
803  (void)channel_name;
804  (void)error;
805  }
806 
827  virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type) {
828  (void)is_fallback;
829  }
830 
853  virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type) {
854  (void)uid;
855  (void)is_fallback;
856  }
857 
874  (void)quality;
875  }
876 
893  virtual void onLastmileProbeResult(const NERtcLastmileProbeResult& result) {
894  (void)result;
895  };
896 
919  virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned) {
920  (void)is_audio_banned;
921  (void)is_video_banned;
922  }
923 
937  (void)result;
938  }
939 
966  (void)enabled;
967  (void)reason;
968  }
969 
987  (void)videoStreamType;
988  (void)state;
989  }
990 };
991 } // namespace nertc
992 
993 #endif
Definition: nertc_engine_event_handler_ex.h:31
virtual void onLastmileQuality(NERtcNetworkQualityType quality)
Definition: nertc_engine_event_handler_ex.h:873
virtual void onAudioRecording(NERtcAudioRecordingCode code, const char *file_path)
Definition: nertc_engine_event_handler_ex.h:761
virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height)
Definition: nertc_engine_event_handler_ex.h:377
virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type)
Definition: nertc_engine_event_handler_ex.h:827
virtual void onMediaRightChange(bool is_audio_banned, bool is_video_banned)
Definition: nertc_engine_event_handler_ex.h:919
virtual void onRemoveLiveStreamTask(const char *task_id, int error_code)
Definition: nertc_engine_event_handler_ex.h:670
virtual void onFirstAudioFrameDecoded(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:356
virtual void onAudioMixingStateChanged(NERtcAudioMixingState state, NERtcAudioMixingErrorCode error_code)
Definition: nertc_engine_event_handler_ex.h:488
virtual void onUserAudioMute(uid_t uid, bool mute)
Definition: nertc_engine_event_handler_ex.h:141
virtual void onAudioHowling(bool howling)
Definition: nertc_engine_event_handler_ex.h:723
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type)
Definition: nertc_engine_event_handler_ex.h:853
virtual void onFirstVideoFrameDecoded(NERtcVideoStreamType type, uid_t uid, uint32_t width, uint32_t height)
Definition: nertc_engine_event_handler_ex.h:418
virtual void onUserVideoMute(NERtcVideoStreamType videoStreamType, uid_t uid, bool mute)
Definition: nertc_engine_event_handler_ex.h:218
virtual void onFirstVideoDataReceived(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:312
virtual void onUserSubStreamVideoStart(uid_t uid, NERtcVideoProfileType max_profile)
Definition: nertc_engine_event_handler_ex.h:48
virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char *channel_name, NERtcErrorCode error)
Definition: nertc_engine_event_handler_ex.h:801
virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcVideoDeviceType device_type, NERtcVideoDeviceState device_state)
Definition: nertc_engine_event_handler_ex.h:278
virtual void onLastmileProbeResult(const NERtcLastmileProbeResult &result)
Definition: nertc_engine_event_handler_ex.h:893
virtual void onUpdateLiveStreamTask(const char *task_id, const char *url, int error_code)
Definition: nertc_engine_event_handler_ex.h:646
virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume)
Definition: nertc_engine_event_handler_ex.h:594
virtual void onFirstVideoDataReceived(NERtcVideoStreamType type, uid_t uid)
Definition: nertc_engine_event_handler_ex.h:341
virtual void onVirtualBackgroundSourceEnabled(bool enabled, NERtcVirtualBackgroundSourceStateReason reason)
Definition: nertc_engine_event_handler_ex.h:965
virtual void onCheckNECastAudioDriverResult(NERtcInstallCastAudioDriverResult result)
Definition: nertc_engine_event_handler_ex.h:936
virtual void onAudioEffectFinished(uint32_t effect_id)
Definition: nertc_engine_event_handler_ex.h:521
virtual void onLocalAudioVolumeIndication(int volume, bool enable_vad)
Definition: nertc_engine_event_handler_ex.h:565
virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type)
Definition: nertc_engine_event_handler_ex.h:258
virtual void onScreenCaptureStatus(NERtcScreenCaptureStatus status)
Definition: nertc_engine_event_handler_ex.h:81
virtual void onLocalAudioVolumeIndication(int volume)
Definition: nertc_engine_event_handler_ex.h:543
virtual void onRecvSEIMsg(uid_t uid, const char *data, uint32_t dataSize)
Definition: nertc_engine_event_handler_ex.h:743
virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type, NERtcAudioDeviceState device_state)
Definition: nertc_engine_event_handler_ex.h:238
virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char *channel_name)
Definition: nertc_engine_event_handler_ex.h:780
virtual void onLiveStreamState(const char *task_id, const char *url, NERtcLiveStreamStateCode state)
Definition: nertc_engine_event_handler_ex.h:697
virtual void onUserSubStreamAudioStop(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:125
virtual void onUserSubStreamVideoStop(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:63
virtual void onUserSubStreamAudioStart(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:110
virtual void onUserSubStreamAudioMute(uid_t uid, bool mute)
Definition: nertc_engine_event_handler_ex.h:163
virtual void onUserVideoMute(uid_t uid, bool mute)
Definition: nertc_engine_event_handler_ex.h:183
virtual void onAddLiveStreamTask(const char *task_id, const char *url, int error_code)
Definition: nertc_engine_event_handler_ex.h:620
virtual void onFirstAudioDataReceived(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:296
virtual void onLocalVideoWatermarkState(NERtcVideoStreamType videoStreamType, NERtcLocalVideoWatermarkState state)
Definition: nertc_engine_event_handler_ex.h:986
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)
Definition: nertc_engine_event_handler_ex.h:450
virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms)
Definition: nertc_engine_event_handler_ex.h:505
virtual void onUserVideoProfileUpdate(uid_t uid, NERtcVideoProfileType max_profile)
Definition: nertc_engine_event_handler_ex.h:94
Definition: nertc_engine_event_handler.h:33
namespace nertc
NERtcLocalVideoWatermarkState
Definition: nertc_engine_defines.h:5741
NERtcAudioDeviceState
Definition: nertc_engine_defines.h:1737
NERtcChannelMediaRelayState
Definition: nertc_engine_defines.h:5366
NERtcVideoStreamType
Definition: nertc_engine_defines.h:5102
NERtcAudioDeviceType
Definition: nertc_engine_defines.h:1699
uint64_t uid_t
Definition: nertc_engine_defines.h:146
NERtcVideoRotation
Definition: nertc_engine_defines.h:4695
NERtcVideoProfileType
Definition: nertc_engine_defines.h:1594
NERtcAudioMixingErrorCode
Definition: nertc_error_code.h:893
NERtcVideoDeviceState
Definition: nertc_engine_defines.h:2008
NERtcScreenCaptureStatus
Definition: nertc_engine_defines.h:3827
NERtcVideoType
Definition: nertc_engine_defines.h:4639
NERtcAudioRecordingCode
Definition: nertc_engine_defines.h:6343
NERtcNetworkQualityType
Definition: nertc_engine_defines.h:3234
NERtcLiveStreamStateCode
Definition: nertc_engine_defines.h:1012
NERtcVirtualBackgroundSourceStateReason
Definition: nertc_engine_defines.h:6762
NERtcInstallCastAudioDriverResult
Definition: nertc_engine_defines.h:6722
NERtcAudioMixingState
Definition: nertc_engine_defines.h:4872
NERtcErrorCode
Definition: nertc_error_code.h:26
NERtcVideoDeviceType
Definition: nertc_engine_defines.h:1979
NERtcChannelMediaRelayEvent
Definition: nertc_engine_defines.h:5413
NERtc SDK definitions.
#define kNERtcMaxPlaneCount
Definition: nertc_engine_defines.h:19
#define kNERtcMaxDeviceIDLength
Definition: nertc_engine_defines.h:55
The interface header file of expansion callback of the NERTC SDK. All parameter descriptions of the N...
Definition: nertc_engine_defines.h:2364
Definition: nertc_engine_defines.h:6654