NERTC macOS/Windows SDK V5.9.1
载入中...
搜索中...
未找到
nertc_engine.h
浏览该文件的文档.
1
7#ifndef NERTC_ENGINE_H
8#define NERTC_ENGINE_H
9
10#include "nertc_base.h"
11#include "nertc_base_types.h"
14#include "nertc_version.h"
15
20namespace nertc {
152
165public:
166 virtual ~IRtcEngine() {}
167
228 virtual int initialize(const NERtcEngineContext& context) = 0;
229
258 virtual void release(bool sync = true) = 0;
259
327 virtual int setClientRole(NERtcClientRole role) = 0;
328
379
464 virtual int joinChannel(const char* token, const char* channel_name, uid_t uid) = 0;
465
525 virtual int joinChannel(const char* token, const char* channel_name, uid_t uid,
526 NERtcJoinChannelOptions channel_options) = 0;
527
604 virtual int switchChannel(const char* token, const char* channel_name) = 0;
605
632 virtual int switchChannel(const char* token, const char* channel_name, NERtcJoinChannelOptions channel_options) = 0;
633
662 virtual int switchChannelEx(const char* token, const char* channel_name, NERtcJoinChannelOptionsEx channel_options_ex) = 0;
663
706 virtual int leaveChannel() = 0;
707
726 virtual int queryInterface(NERtcInterfaceIdType iid, void** inter) = 0;
727
788 virtual int enableLocalAudio(bool enabled) = 0;
789
845 virtual int setupLocalVideoCanvas(NERtcVideoCanvas* canvas) = 0;
846
909 virtual int setupRemoteVideoCanvas(uid_t uid, NERtcVideoCanvas* canvas) = 0;
910
972 virtual int enableLocalVideo(bool enabled) = 0;
973
1037 virtual int enableLocalVideo(NERtcVideoStreamType type, bool enabled) = 0;
1038
1103 virtual int subscribeRemoteVideoStream(uid_t uid, NERtcRemoteVideoStreamType type, bool subscribe) = 0;
1173 virtual int subscribeRemoteVideoStream(uid_t uid, NERtcVideoStreamType stream_type, NERtcRemoteVideoStreamType subscribe_type, bool subscribe) = 0;
1174};
1175
1176} // namespace nertc
1177
1179
1183
1197NERTC_API nertc::IRtcEngine* NERTC_CALL createNERtcEngine();
1198
1209NERTC_API void NERTC_CALL destroyNERtcEngine(void*& nertc_engine_inst);
1210
1212
1214
1215#endif
定义 nertc_engine_event_handler_ex.h:31
定义 nertc_engine.h:164
virtual int setupRemoteVideoCanvas(uid_t uid, NERtcVideoCanvas *canvas)=0
virtual int initialize(const NERtcEngineContext &context)=0
virtual int joinChannel(const char *token, const char *channel_name, uid_t uid, NERtcJoinChannelOptions channel_options)=0
virtual int subscribeRemoteVideoStream(uid_t uid, NERtcVideoStreamType stream_type, NERtcRemoteVideoStreamType subscribe_type, bool subscribe)=0
virtual int queryInterface(NERtcInterfaceIdType iid, void **inter)=0
virtual int subscribeRemoteVideoStream(uid_t uid, NERtcRemoteVideoStreamType type, bool subscribe)=0
virtual int enableLocalVideo(bool enabled)=0
virtual int setChannelProfile(NERtcChannelProfileType profile)=0
virtual int switchChannelEx(const char *token, const char *channel_name, NERtcJoinChannelOptionsEx channel_options_ex)=0
virtual int leaveChannel()=0
virtual int switchChannel(const char *token, const char *channel_name)=0
virtual void release(bool sync=true)=0
virtual int joinChannel(const char *token, const char *channel_name, uid_t uid)=0
virtual int enableLocalAudio(bool enabled)=0
virtual int setupLocalVideoCanvas(NERtcVideoCanvas *canvas)=0
virtual int enableLocalVideo(NERtcVideoStreamType type, bool enabled)=0
virtual int setClientRole(NERtcClientRole role)=0
virtual int switchChannel(const char *token, const char *channel_name, NERtcJoinChannelOptions channel_options)=0
NERTC_API void NERTC_CALL destroyNERtcEngine(void *&nertc_engine_inst)
NERTC_API nertc::IRtcEngine *NERTC_CALL createNERtcEngine()
namespace nertc
NERtcClientRole
定义 nertc_engine_defines.h:253
NERtcInterfaceIdType
定义 nertc_engine_defines.h:224
NERtcLogLevel
定义 nertc_engine_defines.h:7236
@ kNERtcLogLevelWarning
定义 nertc_engine_defines.h:7263
NERtcVideoStreamType
定义 nertc_engine_defines.h:6289
NERtcIPAddrMode
定义 nertc_engine_defines.h:7343
@ kNERtcIPAddrV4AndV6
定义 nertc_engine_defines.h:7355
uint64_t uid_t
定义 nertc_engine_defines.h:192
NERtcChannelProfileType
定义 nertc_engine_defines.h:286
NERtcRemoteVideoStreamType
定义 nertc_engine_defines.h:1984
Defines macro output. The file only defines macro output instead of anything else.
NERtc SDK definitions.
The interface header file of expansion callback of the NERTC SDK. All parameter descriptions of the N...
The version of NERtc SDK.
定义 nertc_engine.h:29
NERtcServerAddresses server_config
定义 nertc_engine.h:125
const char * app_key
定义 nertc_engine.h:50
NERtcIPAddrMode ip_addr_mode
定义 nertc_engine.h:137
const char * version
定义 nertc_engine.h:40
bool video_prefer_hw_decoder
定义 nertc_engine.h:106
bool video_use_exnternal_render
定义 nertc_engine.h:115
const char * log_dir_path
定义 nertc_engine.h:68
IRtcEngineEventHandlerEx * event_handler
定义 nertc_engine.h:59
int32_t area_code_type
定义 nertc_engine.h:131
bool video_prefer_hw_encoder
定义 nertc_engine.h:96
NERtcLogLevel log_level
定义 nertc_engine.h:77
uint32_t log_file_max_size_KBytes
定义 nertc_engine.h:86
定义 nertc_engine_defines.h:8404
定义 nertc_engine_defines.h:8360
定义 nertc_engine_defines.h:7415
定义 nertc_engine_defines.h:4952