NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_vchat.h
浏览该文件的文档.
1
8#ifndef NIM_SDK_DLL_API_NIM_VCHAT_H_
9#define NIM_SDK_DLL_API_NIM_VCHAT_H_
10
11#include "nim_global_def.h"
12#include "nim_vchat_def.h"
13#include "public_defines.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
24NIM_SDK_DLL_API bool nim_vchat_init(const char* json_extension);
25
35NIM_SDK_DLL_API void nim_vchat_set_proxy(enum NIMProxyType type, const char* host, int port, const char* user, const char* password);
36
52 const char* description,
53 const char* json_extension,
55 const void* user_data);
56
62NIM_SDK_DLL_API void nim_vchat_cleanup(const char* json_extension);
63
74
86 const char* apns_text,
87 const char* custom_info,
88 const char* json_extension,
89 const void* user_data);
90
99NIM_SDK_DLL_API bool nim_vchat_callee_ack(int64_t channel_id, bool accept, const char* json_extension, const void* user_data);
100
109NIM_SDK_DLL_API bool nim_vchat_control(int64_t channel_id, enum NIMVChatControlType type, const char* json_extension, const void* user_data);
110
117
123
129
136
142
161 bool add,
162 bool audio,
163 const char* json_extension,
165 const void* user_data);
166
172NIM_SDK_DLL_API void nim_vchat_end(const char* json_extension);
173
190NIM_SDK_DLL_API void nim_vchat_create_room(const char* room_name,
191 const char* custom_info,
192 const char* json_extension,
194 const void* user_data);
195
211 const char* room_name,
212 const char* json_extension,
214 const void* user_data);
215
232 bool custom_video,
233 const char* json_extension,
235 const void* user_data);
236
243NIM_SDK_DLL_API bool nim_vchat_set_talking_mode(enum NIMVideoChatMode mode, const char* json_extension);
244
251
257
268NIM_SDK_DLL_API void nim_vchat_set_video_quality(int video_quality, const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
269
280NIM_SDK_DLL_API void nim_vchat_set_video_bitrate(int video_bitrate, const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
281
293 const char* json_extension,
295 const void* user_data);
296
302
308
321 const char* json_extension,
323 const void* user_data);
324
338NIM_SDK_DLL_API void nim_vchat_start_record(const char* path, const char* json_extension, nim_vchat_mp4_record_opt_cb_func cb, const void* user_data);
339
349NIM_SDK_DLL_API void nim_vchat_stop_record(const char* json_extension, nim_vchat_mp4_record_opt_cb_func cb, const void* user_data);
350
360 const char* json_extension,
362 const void* user_data);
363
371NIM_SDK_DLL_API void nim_vchat_stop_audio_record(const char* json_extension, nim_vchat_audio_record_opt_cb_func cb, const void* user_data);
372
380NIM_SDK_DLL_API void nim_vchat_relogin(const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
381
398NIM_SDK_DLL_API uint64_t nim_vchat_net_detect(const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
399
406
412
423NIM_SDK_DLL_API void nim_vchat_update_rtmp_url(const char* rtmp_url, const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
424
443NIM_SDK_DLL_API void nim_vchat_set_uid_picture_as_main(const char* uid, const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
444
451NIM_SDK_DLL_API bool nim_vchat_set_auto_publish(bool auto_pub, bool auto_sub);
452
458
464
470
477
486NIM_SDK_DLL_API void nim_vchat_publish_video(const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
487
496NIM_SDK_DLL_API void nim_vchat_unpublish_video(const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
497
507NIM_SDK_DLL_API void nim_vchat_subscribe_video(const char* uid, const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
508
518NIM_SDK_DLL_API void nim_vchat_unsubscribe_video(const char* uid, const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
519
529NIM_SDK_DLL_API void nim_vchat_subscribe_audio(bool sub, const char* json_extension, nim_vchat_opt_cb_func cb, const void* user_data);
530
548 const void* remote_data_cb_user_data,
549 const char* json_extension,
551 const void* user_data);
552
553#ifdef __cplusplus
554};
555#endif //__cplusplus
556#endif // NIM_SDK_DLL_API_NIM_VCHAT_H_
#define NIM_SDK_DLL_API
Definition: nim_build_config.h:14
辅助能力 接口相关的常量函数等定义头文件
NIMProxyType
Definition: nim_global_def.h:204
NIM_SDK_DLL_API bool nim_vchat_join_room(enum NIMVideoChatMode mode, const char *room_name, const char *json_extension, nim_vchat_opt2_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_cleanup(const char *json_extension)
NIM_SDK_DLL_API void nim_vchat_set_audio_play_mute(bool muted)
NIM_SDK_DLL_API bool nim_vchat_is_auto_subscribe_audio()
NIM_SDK_DLL_API void nim_vchat_set_uid_picture_as_main(const char *uid, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_unsubscribe_video(const char *uid, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_vchat_init(const char *json_extension)
NIM_SDK_DLL_API bool nim_vchat_is_auto_publish_video()
NIM_SDK_DLL_API void nim_vchat_set_cb_func(nim_vchat_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_rotate_remote_video(bool rotate)
NIM_SDK_DLL_API int nim_vchat_get_video_frame_scale_type()
NIM_SDK_DLL_API void nim_vchat_set_viewer_mode(bool viewer)
NIM_SDK_DLL_API bool nim_vchat_is_auto_subscribe_video()
NIM_SDK_DLL_API void nim_vchat_set_frame_rate(enum NIMVChatVideoFrameRate frame_rate, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_start_record(const char *path, const char *json_extension, nim_vchat_mp4_record_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_vchat_control(int64_t channel_id, enum NIMVChatControlType type, const char *json_extension, const void *user_data)
NIM_SDK_DLL_API int nim_vchat_get_connect_status()
NIM_SDK_DLL_API bool nim_vchat_get_viewer_mode()
NIM_SDK_DLL_API void nim_vchat_create_room(const char *room_name, const char *custom_info, const char *json_extension, nim_vchat_opt2_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_update_rtmp_url(const char *rtmp_url, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_audio_mute(bool muted)
NIM_SDK_DLL_API void nim_vchat_stop_audio_record(const char *json_extension, nim_vchat_audio_record_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_unpublish_video(const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_member_in_blacklist(const char *uid, bool add, bool audio, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_video_quality(int video_quality, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_video_frame_scale(enum NIMVChatVideoFrameScaleType type)
NIM_SDK_DLL_API void nim_vchat_relogin(const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_end(const char *json_extension)
NIM_SDK_DLL_API uint64_t nim_vchat_net_detect(const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_start_audio_record(const char *path, const char *json_extension, nim_vchat_audio_record_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_video_bitrate(int video_bitrate, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_set_proxy(enum NIMProxyType type, const char *host, int port, const char *user, const char *password)
NIM_SDK_DLL_API void nim_vchat_set_custom_data(bool custom_audio, bool custom_video, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_vchat_rotate_remote_video_enabled()
NIM_SDK_DLL_API bool nim_chat_set_local_video_simulcast_mode(enum NIMVChatPublishVideoStreamMode video_stream_mode)
NIM_SDK_DLL_API bool nim_vchat_start(enum NIMVideoChatMode mode, const char *apns_text, const char *custom_info, const char *json_extension, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_rate(int rating, const char *description, const char *json_extension, const nim_vchat_rate_callback cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_publish_video(const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_vchat_callee_ack(int64_t channel_id, bool accept, const char *json_extension, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_subscribe_video(const char *uid, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_select_video_adaptive_strategy(enum NIMVChatVideoEncodeMode mode, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_vchat_audio_mute_enabled()
NIM_SDK_DLL_API void nim_vchat_subscribe_audio(bool sub, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_vchat_set_talking_mode(enum NIMVideoChatMode mode, const char *json_extension)
NIM_SDK_DLL_API bool nim_vchat_set_auto_publish(bool auto_pub, bool auto_sub)
NIM_SDK_DLL_API bool nim_vchat_audio_play_mute_enabled()
NIM_SDK_DLL_API void nim_vchat_set_remote_audio_data_cb(const char *uid, nim_vchat_remote_audio_data_cb_func remote_data_cb, const void *remote_data_cb_user_data, const char *json_extension, nim_vchat_opt_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_vchat_stop_record(const char *json_extension, nim_vchat_mp4_record_opt_cb_func cb, const void *user_data)
音视频 接口相关的常量函数等定义头文件
NIMVChatVideoFrameRate
Definition: nim_vchat_def.h:129
NIMVChatVideoEncodeMode
Definition: nim_vchat_def.h:145
NIMVChatVideoFrameScaleType
Definition: nim_vchat_def.h:157
void(* nim_vchat_audio_record_opt_cb_func)(bool ret, int code, const char *file, int64_t time, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:720
void(* nim_vchat_cb_func)(enum NIMVideoChatSessionType type, int64_t channel_id, int code, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:694
NIMVChatControlType
Definition: nim_vchat_def.h:57
NIMVChatPublishVideoStreamMode
Definition: nim_vchat_def.h:408
void(* nim_vchat_remote_audio_data_cb_func)(uint64_t time, const char *data, unsigned int size, int channels, int rate, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:763
void(* nim_vchat_mp4_record_opt_cb_func)(bool ret, int code, const char *file, int64_t time, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:707
void(* nim_vchat_opt2_cb_func)(int code, int64_t channel_id, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:740
NIMVideoChatMode
Definition: nim_vchat_def.h:89
void(* nim_vchat_rate_callback)(bool ret, int response_code, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:750
void(* nim_vchat_opt_cb_func)(bool ret, int code, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:730
NIM SDK 及 NIM ChatRoom SDK 公用头文件