Unreal Engine SDK V5.4.128
载入中...
搜索中...
未找到
INertcEngine.h
浏览该文件的文档.
1
6#pragma once
7#include "NertcBase.h"
8#include "NertcBaseTypes.h"
10#include "NertcErrorCode.h"
11#include "NertcWarnCode.h"
13
14#include <string>
15#include <map>
16
17namespace nertc {
18
99public:
100 virtual ~IRtcEngine() {}
129virtual int initialize(const NERtcEngineContext& context) = 0;
156virtual void release(bool sync = false) = 0;
191virtual int setClientRole(NERtcClientRole role) = 0;
267virtual int joinChannel(const char* token, const char* channel_name, uid_t uid, const NERtcJoinChannelOptions& channel_options) = 0;
313virtual int switchChannel(const char* token, const char* channel_name, const NERtcJoinChannelOptions& channel_options) = 0;
358virtual int switchChannelEx(const char* token, const char* channel_name, uid_t uid, const NERtcJoinChannelOptionsEx& channel_options) = 0;
387virtual int leaveChannel() = 0;
405virtual int queryInterface(NERtcInterfaceIdType iid, void** inter) = 0;
440virtual int enableLocalAudio(NERtcAudioStreamType type, bool enabled) = 0;
441};
442}
The definition of error codes of NERtc SDK.
定义 INertcEngineEventHandler.h:34
定义 INertcEngine.h:98
virtual void release(bool sync=false)=0
virtual int initialize(const NERtcEngineContext &context)=0
virtual int joinChannel(const char *token, const char *channel_name, uid_t uid, const NERtcJoinChannelOptions &channel_options)=0
virtual int queryInterface(NERtcInterfaceIdType iid, void **inter)=0
virtual int switchChannel(const char *token, const char *channel_name, const NERtcJoinChannelOptions &channel_options)=0
virtual ~IRtcEngine()
定义 INertcEngine.h:100
virtual int setChannelProfile(NERtcChannelProfileType profile)=0
virtual int leaveChannel()=0
virtual int enableLocalAudio(NERtcAudioStreamType type, bool enabled)=0
virtual int switchChannelEx(const char *token, const char *channel_name, uid_t uid, const NERtcJoinChannelOptionsEx &channel_options)=0
virtual int setClientRole(NERtcClientRole role)=0
namespace nertc
定义 INertcAudioDeviceManager.h:11
NERtcClientRole
定义 NertcEngineDefines.h:198
NERtcInterfaceIdType
定义 NertcEngineDefines.h:169
NERtcLogLevel
定义 NertcEngineDefines.h:5970
@ kNERtcLogLevelWarning
定义 NertcEngineDefines.h:5997
uint64_t uid_t
定义 NertcEngineDefines.h:138
NERtcAudioStreamType
定义 NertcEngineDefines.h:3003
NERtcChannelProfileType
定义 NertcEngineDefines.h:231
定义 INertcEngine.h:27
NERtcServerAddresses server_config
定义 INertcEngine.h:88
const char * app_key
定义 INertcEngine.h:37
IRtcEngineEventHandler * event_handler
定义 INertcEngine.h:76
const char * log_dir_path
定义 INertcEngine.h:47
NERtcEngineContext()
定义 INertcEngine.h:90
NERtcLogLevel log_level
定义 INertcEngine.h:56
uint32_t log_file_max_size_KBytes
定义 INertcEngine.h:66
定义 NertcEngineDefines.h:7042
定义 NertcEngineDefines.h:7000
定义 NertcEngineDefines.h:6102