NERTC macOS/Windows SDK V5.6.50
载入中...
搜索中...
未找到
nertc_channel.h
浏览该文件的文档.
1
8#ifndef NERTC_CHANNEL_H
9#define NERTC_CHANNEL_H
10
11#include "nertc_base.h"
12#include "nertc_base_types.h"
16
21namespace nertc
22{
23
33{
34public:
35 virtual ~IRtcChannel() {}
36
47 virtual void release() = 0;
48
65 virtual const char* getChannelName() = 0;
66
89
148 virtual int joinChannel(const char* token) = 0;
149
213 virtual int joinChannel(const char* token, uid_t uid) = 0;
214
273 virtual int joinChannel(const char* token, uid_t uid, NERtcJoinChannelOptions channel_options) = 0;
274
315 virtual int leaveChannel() = 0;
316
335 virtual int setStatsObserver(IRtcMediaStatsObserver* observer) = 0;
336
396 virtual int enableLocalAudio(bool enabled) = 0;
397
424 virtual int enableLocalSubStreamAudio(bool enabled) = 0;
425
485 virtual int muteLocalAudioStream(bool mute) = 0;
486
513 virtual int muteLocalSubStreamAudio(bool mute) = 0;
514
573 virtual int enableLocalVideo(bool enabled) = 0;
574
639 virtual int enableLocalVideo(NERtcVideoStreamType type, bool enabled) = 0;
640
641
700 virtual int muteLocalVideoStream(bool mute) = 0;
701
760 virtual int muteLocalVideoStream(NERtcVideoStreamType type, bool mute) = 0;
761
789 virtual IScreenCaptureSourceList* getScreenCaptureSources(const NERtcSize& thumbSize, const NERtcSize& iconSize, const bool includeScreen) = 0;
790
824 virtual int startScreenCaptureByScreenRect(const NERtcRectangle& screen_rect, const NERtcRectangle& region_rect, const NERtcScreenCaptureParameters& capture_params) = 0;
825
857 virtual int startScreenCaptureByDisplayId(source_id_t display_id, const NERtcRectangle& region_rect, const NERtcScreenCaptureParameters& capture_params) = 0;
858
893 virtual int startScreenCaptureByWindowId(source_id_t window_id, const NERtcRectangle& region_rect, const NERtcScreenCaptureParameters& capture_params) = 0;
894
909 virtual int32_t setScreenCaptureSource(const NERtcScreenCaptureSourceInfo& source, const NERtcRectangle& region_rect, const NERtcScreenCaptureParameters& capture_params) = 0;
910
931 virtual int updateScreenCaptureRegion(const NERtcRectangle& region_rect) = 0;
932
955 virtual int setScreenCaptureMouseCursor(bool capture_cursor) = 0;
956
992 virtual int stopScreenCapture() = 0;
993
1013 virtual int pauseScreenCapture() = 0;
1014
1032 virtual int resumeScreenCapture() = 0;
1033
1034
1060 virtual int setExcludeWindowList(source_id_t* window_list, int count) = 0;
1061
1105
1159 virtual int setupLocalVideoCanvas(NERtcVideoCanvas* canvas) = 0;
1160
1161
1186
1230 virtual int setLocalRenderMode(NERtcVideoScalingMode scaling_mode) = 0;
1231
1276 virtual int setLocalRenderMode(NERtcVideoScalingMode scaling_mode, NERtcVideoStreamType stream_type) = 0;
1277
1302
1328 virtual int setLocalVideoMirrorMode(NERtcVideoMirrorMode mirror_mode) = 0;
1329
1381
1442 virtual int setupRemoteVideoCanvas(uid_t uid, NERtcVideoCanvas* canvas) = 0;
1443
1509
1532 virtual int setRemoteRenderMode(uid_t uid, NERtcVideoScalingMode scaling_mode) = 0;
1533
1558 virtual int setRemoteRenderMode(uid_t uid, NERtcVideoScalingMode scaling_mode, NERtcVideoStreamType stream_type) = 0;
1559
1583 virtual int setRemoteSubSteamRenderMode(uid_t uid, NERtcVideoScalingMode scaling_mode) = 0;
1584
1648 virtual int setClientRole(NERtcClientRole role) = 0;
1649
1707 virtual int setLocalMediaPriority(NERtcMediaPriorityType priority, bool is_preemptive) = 0;
1708
1722
1778 virtual int setCameraCaptureConfig(const NERtcCameraCaptureConfig& config) = 0;
1779
1831
1893 virtual int setVideoConfig(const NERtcVideoConfig& config) = 0;
1894
1947 virtual int setVideoConfig(NERtcVideoStreamType type, const NERtcVideoConfig& config) = 0;
1948
1998 virtual int enableDualStreamMode(bool enable) = 0;
1999
2058 virtual int subscribeRemoteAudioStream(uid_t uid, bool subscribe) = 0;
2059
2119 virtual int subscribeRemoteSubStreamAudio(uid_t uid, bool subscribe) = 0;
2120
2171 virtual int subscribeAllRemoteAudioStream(bool subscribe) = 0;
2172
2203 virtual int setAudioSubscribeOnlyBy(uid_t* uid_array, uint32_t size) = 0;
2204
2220 virtual int setSubscribeAudioAllowlist(uid_t* uid_array, uint32_t size) = 0;
2221
2237 virtual int setSubscribeAudioBlocklist(NERtcAudioStreamType type, uid_t* uid_array, uint32_t size) = 0;
2238
2302 virtual int subscribeRemoteVideoStream(uid_t uid, NERtcRemoteVideoStreamType type, bool subscribe) = 0;
2303
2367 virtual int subscribeRemoteVideoSubStream(uid_t uid, bool subscribe) = 0;
2368
2453 virtual int addLiveStreamTask(const NERtcLiveStreamTaskInfo& info) = 0;
2454
2507 virtual int updateLiveStreamTask(const NERtcLiveStreamTaskInfo& info) = 0;
2508
2562 virtual int removeLiveStreamTask(const char* task_id) = 0;
2563
2602 virtual int sendSEIMsg(const char* data, int length, NERtcVideoStreamType type) = 0;
2603
2642 virtual int sendSEIMsg(const char* data, int length) = 0;
2643
2675
2706 virtual int takeRemoteSnapshot(uid_t uid, NERtcVideoStreamType stream_type, NERtcTakeSnapshotCallback *callback) = 0;
2707
2766 virtual int adjustUserPlaybackSignalVolume(uid_t uid, int volume) = 0;
2767
2797 virtual int adjustChannelPlaybackSignalVolume(uint32_t volume) = 0;
2798
2828
2852
2882 virtual int stopChannelMediaRelay() = 0;
2883
2909
2935
2968 virtual int setRemoteHighPriorityAudioStream(bool enabled, uid_t uid) = 0;
2969
2994 virtual int setExternalVideoSource(bool enabled) = 0;
2995
3023 virtual int setExternalVideoSource(NERtcVideoStreamType type, bool enabled) = 0;
3024
3046
3068
3069
3111 virtual int enableMediaPub(bool enabled, NERtcMediaPubType media_type) = 0;
3112
3155 virtual int updatePermissionKey(const char* key) = 0;
3165 virtual int reportCustomEvent(const char* event_name, const char* custom_identify, const char* parameters) = 0;
3229 virtual int enableAudioVolumeIndication(bool enable, uint64_t interval, bool enable_vad) = 0;
3230
3242
3253 virtual int setRangeAudioTeamID(int32_t team_id) = 0;
3254
3270 virtual int setAudioRecvRange(int audible_distance, int conversational_distance, NERtcDistanceRolloffModel roll_off) = 0;
3271
3305 virtual int updateSelfPosition(const NERtcPositionInfo& info) = 0;
3306
3320 virtual int enableSpatializerRoomEffects(bool enable) = 0;
3321
3335 virtual int setSpatializerRoomProperty(const NERtcSpatializerRoomProperty& room_property) = 0;
3336
3351
3361 virtual int initSpatializer() = 0;
3362
3382 virtual int enableSpatializer(bool enable, bool apply_to_team) = 0;
3383};
3384} //namespace nertc
3385
3386#endif
定义 nertc_channel_event_handler.h:34
定义 nertc_channel.h:33
virtual int enableDualStreamMode(bool enable)=0
virtual int setSpatializerRoomProperty(const NERtcSpatializerRoomProperty &room_property)=0
virtual int muteLocalVideoStream(bool mute)=0
virtual int subscribeAllRemoteAudioStream(bool subscribe)=0
virtual int setChannelEventHandler(IRtcChannelEventHandler *handler)=0
virtual IScreenCaptureSourceList * getScreenCaptureSources(const NERtcSize &thumbSize, const NERtcSize &iconSize, const bool includeScreen)=0
virtual int stopChannelMediaRelay()=0
virtual int setRemoteRenderMode(uid_t uid, NERtcVideoScalingMode scaling_mode)=0
virtual int setupRemoteVideoCanvas(uid_t uid, NERtcVideoCanvas *canvas)=0
virtual int setClientRole(NERtcClientRole role)=0
virtual int sendSEIMsg(const char *data, int length)=0
virtual int resumeScreenCapture()=0
virtual int initSpatializer()=0
virtual int enableAudioVolumeIndication(bool enable, uint64_t interval, bool enable_vad)=0
virtual int setSubscribeAudioAllowlist(uid_t *uid_array, uint32_t size)=0
virtual int updateLiveStreamTask(const NERtcLiveStreamTaskInfo &info)=0
virtual int subscribeRemoteVideoStream(uid_t uid, NERtcRemoteVideoStreamType type, bool subscribe)=0
virtual int enableSpatializerRoomEffects(bool enable)=0
virtual int sendSEIMsg(const char *data, int length, NERtcVideoStreamType type)=0
virtual int pushExternalVideoFrame(NERtcVideoFrame *frame)=0
virtual int setSpatializerRenderMode(NERtcSpatializerRenderMode mode)=0
virtual int setupLocalVideoCanvas(NERtcVideoCanvas *canvas)=0
virtual int addLiveStreamTask(const NERtcLiveStreamTaskInfo &info)=0
virtual int setRemoteSubSteamRenderMode(uid_t uid, NERtcVideoScalingMode scaling_mode)=0
virtual int setScreenCaptureMouseCursor(bool capture_cursor)=0
virtual int startScreenCaptureByWindowId(source_id_t window_id, const NERtcRectangle &region_rect, const NERtcScreenCaptureParameters &capture_params)=0
virtual int setStatsObserver(IRtcMediaStatsObserver *observer)=0
virtual int setSubscribeAudioBlocklist(NERtcAudioStreamType type, uid_t *uid_array, uint32_t size)=0
virtual int subscribeRemoteAudioStream(uid_t uid, bool subscribe)=0
virtual int enableLocalVideo(NERtcVideoStreamType type, bool enabled)=0
virtual int muteLocalAudioStream(bool mute)=0
virtual int setLocalPublishFallbackOption(NERtcStreamFallbackOption option)=0
virtual int enableSpatializer(bool enable, bool apply_to_team)=0
virtual int takeLocalSnapshot(NERtcVideoStreamType stream_type, NERtcTakeSnapshotCallback *callback)=0
virtual int setRemoteSubscribeFallbackOption(NERtcStreamFallbackOption option)=0
virtual int muteLocalVideoStream(NERtcVideoStreamType type, bool mute)=0
virtual int updateScreenCaptureParameters(const nertc::NERtcScreenCaptureParameters &captureParams)=0
virtual int setupRemoteSubStreamVideoCanvas(uid_t uid, NERtcVideoCanvas *canvas)=0
virtual int setCameraCaptureConfig(NERtcVideoStreamType type, const NERtcCameraCaptureConfig &config)=0
virtual NERtcConnectionStateType getConnectionState()=0
virtual int joinChannel(const char *token, uid_t uid, NERtcJoinChannelOptions channel_options)=0
virtual int muteLocalSubStreamAudio(bool mute)=0
virtual int setRemoteRenderMode(uid_t uid, NERtcVideoScalingMode scaling_mode, NERtcVideoStreamType stream_type)=0
virtual int setRemoteHighPriorityAudioStream(bool enabled, uid_t uid)=0
virtual int setRangeAudioTeamID(int32_t team_id)=0
virtual int updateSelfPosition(const NERtcPositionInfo &info)=0
virtual int pauseScreenCapture()=0
virtual int setVideoConfig(NERtcVideoStreamType type, const NERtcVideoConfig &config)=0
virtual int setAudioSubscribeOnlyBy(uid_t *uid_array, uint32_t size)=0
virtual int setLocalRenderMode(NERtcVideoScalingMode scaling_mode, NERtcVideoStreamType stream_type)=0
virtual int adjustChannelPlaybackSignalVolume(uint32_t volume)=0
virtual int stopScreenCapture()=0
virtual int setLocalVideoMirrorMode(NERtcVideoMirrorMode mirror_mode)=0
virtual int setExcludeWindowList(source_id_t *window_list, int count)=0
virtual int setLocalRenderMode(NERtcVideoScalingMode scaling_mode)=0
virtual int updatePermissionKey(const char *key)=0
virtual int enableLocalVideo(bool enabled)=0
virtual int adjustUserPlaybackSignalVolume(uid_t uid, int volume)=0
virtual int enableLocalSubStreamAudio(bool enabled)=0
virtual int setAudioRecvRange(int audible_distance, int conversational_distance, NERtcDistanceRolloffModel roll_off)=0
virtual int startChannelMediaRelay(NERtcChannelMediaRelayConfiguration *config)=0
virtual int enableLocalAudio(bool enabled)=0
virtual int leaveChannel()=0
virtual int setLocalSubStreamRenderMode(NERtcVideoScalingMode scaling_mode)=0
virtual int startScreenCaptureByScreenRect(const NERtcRectangle &screen_rect, const NERtcRectangle &region_rect, const NERtcScreenCaptureParameters &capture_params)=0
virtual int subscribeRemoteVideoSubStream(uid_t uid, bool subscribe)=0
virtual int joinChannel(const char *token)=0
virtual int setRangeAudioMode(NERtcRangeAudioMode mode)=0
virtual int32_t setScreenCaptureSource(const NERtcScreenCaptureSourceInfo &source, const NERtcRectangle &region_rect, const NERtcScreenCaptureParameters &capture_params)=0
virtual int subscribeRemoteSubStreamAudio(uid_t uid, bool subscribe)=0
virtual void release()=0
virtual int enableMediaPub(bool enabled, NERtcMediaPubType media_type)=0
virtual int updateChannelMediaRelay(NERtcChannelMediaRelayConfiguration *config)=0
virtual int updateScreenCaptureRegion(const NERtcRectangle &region_rect)=0
virtual int pushExternalVideoFrame(NERtcVideoStreamType type, NERtcVideoFrame *frame)=0
virtual int setLocalMediaPriority(NERtcMediaPriorityType priority, bool is_preemptive)=0
virtual int joinChannel(const char *token, uid_t uid)=0
virtual int setCameraCaptureConfig(const NERtcCameraCaptureConfig &config)=0
virtual int setVideoConfig(const NERtcVideoConfig &config)=0
virtual int reportCustomEvent(const char *event_name, const char *custom_identify, const char *parameters)=0
virtual int setLocalVideoMirrorMode(NERtcVideoStreamType type, NERtcVideoMirrorMode mirror_mode)=0
virtual int setupLocalSubStreamVideoCanvas(NERtcVideoCanvas *canvas)=0
virtual int removeLiveStreamTask(const char *task_id)=0
virtual int startScreenCaptureByDisplayId(source_id_t display_id, const NERtcRectangle &region_rect, const NERtcScreenCaptureParameters &capture_params)=0
virtual int takeRemoteSnapshot(uid_t uid, NERtcVideoStreamType stream_type, NERtcTakeSnapshotCallback *callback)=0
virtual const char * getChannelName()=0
virtual int setExternalVideoSource(bool enabled)=0
virtual int setExternalVideoSource(NERtcVideoStreamType type, bool enabled)=0
定义 nertc_engine_media_stats_observer.h:30
定义 nertc_engine_defines.h:8417
定义 nertc_engine_defines.h:6792
namespace nertc
NERtcClientRole
定义 nertc_engine_defines.h:244
NERtcStreamFallbackOption
定义 nertc_engine_defines.h:7268
NERtcVideoScalingMode
定义 nertc_engine_defines.h:2171
NERtcVideoStreamType
定义 nertc_engine_defines.h:5959
NERtcMediaPriorityType
定义 nertc_engine_defines.h:377
NERtcConnectionStateType
定义 nertc_engine_defines.h:2302
NERtcRangeAudioMode
定义 nertc_engine_defines.h:7947
uint64_t uid_t
定义 nertc_engine_defines.h:183
NERtcSpatializerRenderMode
定义 nertc_engine_defines.h:8588
NERtcAudioStreamType
定义 nertc_engine_defines.h:3248
void * source_id_t
定义 nertc_engine_defines.h:204
NERtcVideoMirrorMode
定义 nertc_engine_defines.h:2213
NERtcMediaPubType
定义 nertc_engine_defines.h:8024
NERtcDistanceRolloffModel
定义 nertc_engine_defines.h:8614
NERtcRemoteVideoStreamType
定义 nertc_engine_defines.h:1772
Defines macro output. The file only defines macro output instead of anything else.
NERTC SDK IRtcChannel 回调接口头文件。 NERTC SDK 所有接口参数说明: 所有与字符串相关的参数(char *)全部为 UTF-8 编码。
NERtc SDK definitions.
The interface header file of expansion callback of the NERTC SDK. All parameter descriptions of the N...
定义 nertc_engine_defines.h:1646
定义 nertc_engine_defines.h:6239
定义 nertc_engine_defines.h:7922
定义 nertc_engine_defines.h:1035
定义 nertc_engine_defines.h:8639
定义 nertc_engine_defines.h:4170
定义 nertc_engine_defines.h:4421
定义 nertc_engine_defines.h:8367
定义 nertc_engine_defines.h:8321
定义 nertc_engine_defines.h:8661
定义 nertc_engine_defines.h:4679
定义 nertc_engine_defines.h:3789
定义 nertc_engine_defines.h:5410