Unreal Engine SDK V5.4.128
载入中...
搜索中...
未找到
INertcChannel.h
浏览该文件的文档.
1
8#pragma once
9
10#include "NertcBase.h"
11#include "NertcBaseTypes.h"
12#include "NertcEngineDefines.h"
13#include "NertcErrorCode.h"
14#include "NertcWarnCode.h"
17
22namespace nertc
23{
24
34{
35public:
36 virtual ~IRtcChannel() {}
37
48 virtual void release() = 0;
49
66 virtual const char* getChannelName() = 0;
67
90
149 virtual int joinChannel(const char* token) = 0;
150
214 virtual int joinChannel(const char* token, uid_t uid) = 0;
215
274 virtual int joinChannel(const char* token, uid_t uid, NERtcJoinChannelOptions channel_options) = 0;
320 virtual int switchChannel(const char* token, const char* channel_name, const NERtcJoinChannelOptions& channel_options) = 0;
361 virtual int leaveChannel() = 0;
362
381 virtual int setStatsObserver(IRtcMediaStatsObserver* observer) = 0;
382
442 virtual int enableLocalAudio(bool enabled) = 0;
443
503 virtual int muteLocalAudioStream(bool mute) = 0;
504
568 virtual int setClientRole(NERtcClientRole role) = 0;
569
583
642 virtual int subscribeRemoteAudioStream(uid_t uid, bool subscribe) = 0;
643
694 virtual int subscribeAllRemoteAudioStream(bool subscribe) = 0;
695
726 virtual int setPublishAudioAllowList(uid_t* uid_array, uint32_t size) = 0;
727
743 virtual int setSubscribeAudioAllowList(uid_t* uid_array, uint32_t size) = 0;
744
760 virtual int setSubscribeAudioBlockList(uid_t* uid_array, uint32_t size) = 0;
761
825 virtual int enableAudioVolumeIndication(bool enable, uint64_t interval, bool enable_vad) = 0;
826
836
845 virtual int setRangeAudioTeamID(int32_t team_id) = 0;
846
882 virtual int setAudioRecvRange(int audible_distance, int conversational_distance, NERtcDistanceRolloffModel roll_off) = 0;
883
920 virtual int updateSelfPosition(const NERtcPositionInfo& info) = 0;
921
929 virtual int initSpatializer() = 0;
930
944 virtual int enableSpatializer(bool enable) = 0;
945
950 virtual int getMicrophoneMode(bool* enabled) = 0;
951
956 virtual bool checkMicPermision() = 0;
957
965 virtual bool isInChannel() = 0;
966
971};
972} //namespace nertc
The definition of error codes of NERtc SDK.
定义 INertcChannelEventHandler.h:34
定义 INertcChannel.h:34
virtual int subscribeAllRemoteAudioStream(bool subscribe)=0
virtual int setChannelEventHandler(IRtcChannelEventHandler *handler)=0
virtual int setClientRole(NERtcClientRole role)=0
virtual int initSpatializer()=0
virtual int enableAudioVolumeIndication(bool enable, uint64_t interval, bool enable_vad)=0
virtual int getMicrophoneMode(bool *enabled)=0
virtual int setSubscribeAudioBlockList(uid_t *uid_array, uint32_t size)=0
virtual int setStatsObserver(IRtcMediaStatsObserver *observer)=0
virtual int subscribeRemoteAudioStream(uid_t uid, bool subscribe)=0
virtual int muteLocalAudioStream(bool mute)=0
virtual NERtcConnectionStateType getConnectionState()=0
virtual int joinChannel(const char *token, uid_t uid, NERtcJoinChannelOptions channel_options)=0
virtual bool acquireAndroidRecordingPermissions()=0
virtual int setRangeAudioTeamID(int32_t team_id)=0
virtual int updateSelfPosition(const NERtcPositionInfo &info)=0
virtual ~IRtcChannel()
定义 INertcChannel.h:36
virtual int switchChannel(const char *token, const char *channel_name, const NERtcJoinChannelOptions &channel_options)=0
virtual int enableSpatializer(bool enable)=0
virtual bool checkMicPermision()=0
virtual int setPublishAudioAllowList(uid_t *uid_array, uint32_t size)=0
virtual int setSubscribeAudioAllowList(uid_t *uid_array, uint32_t size)=0
virtual int setAudioRecvRange(int audible_distance, int conversational_distance, NERtcDistanceRolloffModel roll_off)=0
virtual int enableLocalAudio(bool enabled)=0
virtual int leaveChannel()=0
virtual int joinChannel(const char *token)=0
virtual int setRangeAudioMode(NERtcRangeAudioMode mode)=0
virtual void release()=0
virtual bool isInChannel()=0
virtual int joinChannel(const char *token, uid_t uid)=0
virtual const char * getChannelName()=0
定义 INertcMediaStatsObserver.h:28
namespace nertc
定义 INertcAudioDeviceManager.h:11
NERtcClientRole
定义 NertcEngineDefines.h:198
NERtcConnectionStateType
定义 NertcEngineDefines.h:2190
NERtcRangeAudioMode
定义 NertcEngineDefines.h:6976
uint64_t uid_t
定义 NertcEngineDefines.h:138
NERtcDistanceRolloffModel
定义 NertcEngineDefines.h:7553
定义 NertcEngineDefines.h:7000
定义 NertcEngineDefines.h:7569