NERtc Linux SDK  V4.4.9
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 onUserAudioMute(uid_t uid, bool mute) {
111  (void)uid;
112  (void)mute;
113  }
126  virtual void onUserVideoMute(uid_t uid, bool mute) {
127  (void)uid;
128  (void)mute;
129  }
130 
145  virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
146  NERtcAudioDeviceType device_type,
147  NERtcAudioDeviceState device_state) {
148  (void)device_id;
149  (void)device_type;
150  (void)device_state;
151  }
152 
165  virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength],
166  NERtcAudioDeviceType device_type) {
167  (void)device_id;
168  (void)device_type;
169  }
170 
185  virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength],
186  NERtcVideoDeviceType device_type,
187  NERtcVideoDeviceState device_state) {
188  (void)device_id;
189  (void)device_type;
190  (void)device_state;
191  }
192 
203  virtual void onFirstAudioDataReceived(uid_t uid) {
204  (void)uid;
205  }
206 
219  virtual void onFirstVideoDataReceived(uid_t uid) {
220  (void)uid;
221  }
222 
233  virtual void onFirstAudioFrameDecoded(uid_t uid) {
234  (void)uid;
235  }
236 
253  virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height) {
254  (void)uid;
255  (void)width;
256  (void)height;
257  }
258 
286  virtual void onCaptureVideoFrame(void *data,
287  NERtcVideoType type,
288  uint32_t width,
289  uint32_t height,
290  uint32_t count,
291  uint32_t offset[kNERtcMaxPlaneCount],
292  uint32_t stride[kNERtcMaxPlaneCount],
293  NERtcVideoRotation rotation) {
294  (void)data;
295  (void)type;
296  (void)width;
297  (void)height;
298  (void)count;
299  (void)offset;
300  (void)stride;
301  (void)rotation;
302  }
303 
327  (void)state;
328  (void)error_code;
329  }
330 
345  virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms) {
346  (void)timestamp_ms;
347  }
348 
363  virtual void onAudioEffectFinished(uint32_t effect_id) {
364  (void)effect_id;
365  }
366 
383  virtual void onLocalAudioVolumeIndication(int volume) {
384  (void)volume;
385  }
386 
411  virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume) {
412  (void)speakers;
413  (void)speaker_number;
414  (void)total_volume;
415  }
416 
439  virtual void onAddLiveStreamTask(const char* task_id, const char* url, int error_code) {
440  (void)task_id;
441  (void)url;
442  (void)error_code;
443  }
444 
467  virtual void onUpdateLiveStreamTask(const char* task_id, const char* url, int error_code) {
468  (void)task_id;
469  (void)url;
470  (void)error_code;
471  }
472 
493  virtual void onRemoveLiveStreamTask(const char* task_id, int error_code) {
494  (void)task_id;
495  (void)error_code;
496  }
497 
522  virtual void onLiveStreamState(const char* task_id, const char* url, NERtcLiveStreamStateCode state) {
523  (void)task_id;
524  (void)url;
525  (void)state;
526  }
527 
548  virtual void onAudioHowling(bool howling) {
549  (void)howling;
550  }
551 
568  virtual void onRecvSEIMsg(uid_t uid, const char* data, uint32_t dataSize) {
569  (void)uid;
570  (void)data;
571  (void)dataSize;
572  }
573 
588  virtual void onAudioRecording(NERtcAudioRecordingCode code, const char* file_path) {
589  (void)code;
590  (void)file_path;
591  }
592 
609  virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char* channel_name) {
610  (void)state;
611  (void)channel_name;
612  }
613 
632  virtual void onMediaRelayEvent(NERtcChannelMediaRelayEvent event, const char* channel_name, NERtcErrorCode error) {
633  (void)event;
634  (void)channel_name;
635  (void)error;
636  }
637 
660  virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type) {
661  (void)is_fallback;
662  }
663 
688  virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type) {
689  (void)uid;
690  (void)is_fallback;
691  }
692 };
693 } //namespace nertc
694 
695 #endif
Definition: nertc_engine_event_handler_ex.h:31
virtual void onAudioRecording(NERtcAudioRecordingCode code, const char *file_path)
Definition: nertc_engine_event_handler_ex.h:588
virtual void onFirstVideoFrameDecoded(uid_t uid, uint32_t width, uint32_t height)
Definition: nertc_engine_event_handler_ex.h:253
virtual void onLocalPublishFallbackToAudioOnly(bool is_fallback, NERtcVideoStreamType stream_type)
Definition: nertc_engine_event_handler_ex.h:660
virtual void onRemoveLiveStreamTask(const char *task_id, int error_code)
Definition: nertc_engine_event_handler_ex.h:493
virtual void onFirstAudioFrameDecoded(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:233
virtual void onAudioMixingStateChanged(NERtcAudioMixingState state, NERtcAudioMixingErrorCode error_code)
Definition: nertc_engine_event_handler_ex.h:326
virtual void onUserAudioMute(uid_t uid, bool mute)
Definition: nertc_engine_event_handler_ex.h:110
virtual void onAudioHowling(bool howling)
Definition: nertc_engine_event_handler_ex.h:548
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool is_fallback, NERtcVideoStreamType stream_type)
Definition: nertc_engine_event_handler_ex.h:688
virtual void onFirstVideoDataReceived(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:219
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:632
virtual void onVideoDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcVideoDeviceType device_type, NERtcVideoDeviceState device_state)
Definition: nertc_engine_event_handler_ex.h:185
virtual void onUpdateLiveStreamTask(const char *task_id, const char *url, int error_code)
Definition: nertc_engine_event_handler_ex.h:467
virtual void onRemoteAudioVolumeIndication(const NERtcAudioVolumeInfo *speakers, unsigned int speaker_number, int total_volume)
Definition: nertc_engine_event_handler_ex.h:411
virtual void onAudioEffectFinished(uint32_t effect_id)
Definition: nertc_engine_event_handler_ex.h:363
virtual void onAudioDefaultDeviceChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type)
Definition: nertc_engine_event_handler_ex.h:165
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:383
virtual void onRecvSEIMsg(uid_t uid, const char *data, uint32_t dataSize)
Definition: nertc_engine_event_handler_ex.h:568
virtual void onAudioDeviceStateChanged(const char device_id[kNERtcMaxDeviceIDLength], NERtcAudioDeviceType device_type, NERtcAudioDeviceState device_state)
Definition: nertc_engine_event_handler_ex.h:145
virtual void onMediaRelayStateChanged(NERtcChannelMediaRelayState state, const char *channel_name)
Definition: nertc_engine_event_handler_ex.h:609
virtual void onLiveStreamState(const char *task_id, const char *url, NERtcLiveStreamStateCode state)
Definition: nertc_engine_event_handler_ex.h:522
virtual void onUserSubStreamVideoStop(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:63
virtual void onUserVideoMute(uid_t uid, bool mute)
Definition: nertc_engine_event_handler_ex.h:126
virtual void onAddLiveStreamTask(const char *task_id, const char *url, int error_code)
Definition: nertc_engine_event_handler_ex.h:439
virtual void onFirstAudioDataReceived(uid_t uid)
Definition: nertc_engine_event_handler_ex.h:203
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:286
virtual void onAudioMixingTimestampUpdate(uint64_t timestamp_ms)
Definition: nertc_engine_event_handler_ex.h:345
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
NERtcAudioDeviceState
Definition: nertc_engine_defines.h:1679
NERtcChannelMediaRelayState
Definition: nertc_engine_defines.h:4924
NERtcVideoStreamType
Definition: nertc_engine_defines.h:4683
NERtcAudioDeviceType
Definition: nertc_engine_defines.h:1640
uint64_t uid_t
Definition: nertc_engine_defines.h:133
NERtcVideoRotation
Definition: nertc_engine_defines.h:4327
NERtcVideoProfileType
Definition: nertc_engine_defines.h:1523
NERtcAudioMixingErrorCode
Definition: nertc_error_code.h:139
NERtcVideoDeviceState
Definition: nertc_engine_defines.h:1955
NERtcScreenCaptureStatus
Definition: nertc_engine_defines.h:3652
NERtcVideoType
Definition: nertc_engine_defines.h:4270
NERtcAudioRecordingCode
Definition: nertc_engine_defines.h:5557
NERtcLiveStreamStateCode
Definition: nertc_engine_defines.h:891
NERtcAudioMixingState
Definition: nertc_engine_defines.h:4498
NERtcErrorCode
Definition: nertc_error_code.h:20
NERtcVideoDeviceType
Definition: nertc_engine_defines.h:1925
NERtcChannelMediaRelayEvent
Definition: nertc_engine_defines.h:4971
NERtc SDK definitions.
#define kNERtcMaxPlaneCount
Definition: nertc_engine_defines.h:18
#define kNERtcMaxDeviceIDLength
Definition: nertc_engine_defines.h:54
The interface header file of expansion callback of the NERTC SDK. All parameter descriptions of the N...
Definition: nertc_engine_defines.h:2292