NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_vchat_def.h
浏览该文件的文档.
1
8#ifndef NIM_SDK_DLL_EXPORT_HEADERS_NIM_VCHAT_DEF_H_
9#define NIM_SDK_DLL_EXPORT_HEADERS_NIM_VCHAT_DEF_H_
10
11#include "public_defines.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
54};
55
86};
87
94};
95
108};
109
126};
127
142};
143
154};
155
166};
167
186};
187
202};
203
218};
219
239};
240
251};
252
259};
260
267};
268
279};
280
329};
330
337};
338
355};
356
375};
376
385};
386
405};
406
413};
420};
421
440};
441
448};
449
454static const char* kNIMVChatServerSettingPath = "server_setting_path"; // 初始化 内容Json key
456
461static const char* kNIMNetDetectAppKey = "app_key";
463static const char* kNIMNetDetectTimeLimit = "time";
465static const char* kNIMNetDetectType = "type";
467static const char* kNIMNetDetectQualityType = "quality_type"; // 网络探测 内容Json key
469
474static const char* kNIMNetDetectTaskId = "task_id";
476static const char* kNIMNetDetectLoss = "loss";
478static const char* kNIMNetDetectRttmax = "rttmax";
480static const char* kNIMNetDetectRttmin = "rttmin";
482static const char* kNIMNetDetectRttavg = "rttavg";
484static const char* kNIMNetDetectRttmdev = "rttmdev";
486static const char* kNIMNetDetectDetail = "detailinfo"; // 网络探测回调 内容Json key
488
493static const char* kNIMVChatUids = "uids";
495static const char* kNIMVChatSessionId = "session_id";
497static const char* kNIMVChatTimeout = "time_out";
499static const char* kNIMVChatCustomVideo = "custom_video";
501static const char* kNIMVChatCustomAudio = "custom_audio";
503static const char* kNIMVChatRecord = "record";
505static const char* kNIMVChatVideoRecord = "video_record";
507static const char* kNIMVChatRecordType = "record_type";
509static const char* kNIMVChatRHostSpeaker = "r_host_speaker";
511static const char* kNIMVChatMaxVideoRate = "max_video_rate";
513static const char* kNIMVChatVideoQuality = "video_quality";
515static const char* kNIMVChatVideoFrameRate = "frame_rate";
517static const char* kNIMVChatAudioMode = "audio_mode";
519static const char* kNIMVChatRtmpUrl = "rtmp_url";
521static const char* kNIMVChatBypassRtmp = "bypass_rtmp";
523static const char* kNIMVChatRtmpRecord = "rtmp_record";
525static const char* kNIMVChatSplitMode = "split_mode";
527static const char* kNIMVChatCustomLayout = "custom_layout";
529static const char* kNIMVChatPushEnable = "push_enable";
531static const char* kNIMVChatNeedBadge = "need_badge";
533static const char* kNIMVChatNeedFromNick = "need_nick";
535static const char* kNIMVChatApnsPayload = "payload";
537static const char* kNIMVChatSound = "sound";
539static const char* kNIMVChatKeepCalling = "keepcalling";
541static const char* kNIMVChatVEncodeMode = "v_encode_mode";
543static const char* kNIMVChatServerSubscribeFallbackStrategy = "server_sub_fb_stategy";
544 // json extension params
546
551static const char* kNIMVChatUid = "uid";
553static const char* kNIMVChatStatus = "status";
555static const char* kNIMVChatRecordAddr = "record_addr";
557static const char* kNIMVChatRecordFile = "record_file";
559static const char* kNIMVChatVideoRecordFile = "video_record_file";
561static const char* kNIMVChatType = "type";
563static const char* kNIMVChatTime = "time";
565static const char* kNIMVChatAccept = "accept";
567static const char* kNIMVChatClient = "client";
569static const char* kNIMVChatMp4Start = "mp4_start";
571static const char* kNIMVChatMp4Close = "mp4_close";
573static const char* kNIMVChatMp4File = "mp4_file";
575static const char* kNIMVChatAuRecordStart = "audio_record_start";
577static const char* kNIMVChatAuRecordClose = "audio_record_close";
579static const char* kNIMVChatFile = "file";
581static const char* kNIMVChatCustomInfo = "custom_info";
583static const char* kNIMVChatVideo = "video";
585static const char* kNIMVChatAudio = "audio";
587static const char* kNIMVChatStaticInfo = "static_info";
589static const char* kNIMVChatFPS = "fps";
591static const char* kNIMVChatKBPS = "KBps";
593static const char* kNIMVChatLostRate = "lost_rate";
595static const char* kNIMVChatRtt = "rtt";
597static const char* kNIMVChatAudioVolume = "audio_volume";
599static const char* kNIMVChatSelf = "self";
601static const char* kNIMVChatReceiver = "receiver";
603static const char* kNIMVChatLiveState = "live_state";
605static const char* kNIMVChatMp4AudioType = "mp4_audio";
607static const char* kNIMVChatMp4Recode = "mp4_recode";
609static const char* kNIMVChatMp4Width = "mp4_width";
611static const char* kNIMVChatMp4Height = "mp4_height";
613static const char* kNIMVChatTrafficStatRX = "trafficstat_rx";
615static const char* kNIMVChatTrafficStatTX = "trafficstat_tx";
617static const char* kNIMVChatVideoSimulcastResList = "video_simulcast_res_list";
618
623static const char* kNIMVChatRoomConfig = "room_config";
625static const char* kNIMVChatRTMPTasks = "rtmpTasks";
627static const char* kNIMVChatRTMPTaskID = "taskId";
629static const char* kNIMVChatRTMPURL = "streamUrl";
631static const char* kNIMVChatRTMPLayoutMode = "layoutMode";
633static const char* kNIMVChatRTMPLayoutPara = "layoutPara";
635static const char* kNIMVChatRTMPRecord = "record";
637static const char* kNIMVChatRTMPMainScreenAccid = "accid"; // json extension params
639
644static const char* kNIMVChatAccount = "account"; // json extension params
646
694typedef void (*nim_vchat_cb_func)(enum NIMVideoChatSessionType type, int64_t channel_id, int code, const char* json_extension, const void* user_data);
695
706typedef void (
707 *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);
708
719typedef void (
720 *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);
721
730typedef void (*nim_vchat_opt_cb_func)(bool ret, int code, const char* json_extension, const void* user_data);
731
740typedef void (*nim_vchat_opt2_cb_func)(int code, int64_t channel_id, const char* json_extension, const void* user_data);
741
750typedef void (*nim_vchat_rate_callback)(bool ret, int response_code, const char* json_extension, const void* user_data);
751
763typedef void (*nim_vchat_remote_audio_data_cb_func)(uint64_t time,
764 const char* data,
765 unsigned int size,
766 int channels,
767 int rate,
768 const char* json_extension,
769 const void* user_data);
770
771#ifdef __cplusplus
772};
773#endif // __cplusplus
774#endif // NIM_SDK_DLL_EXPORT_HEADERS_NIM_VCHAT_DEF_H_
static const char * kNIMVChatMp4Start
key Mp4写入数据开始 kNIMVChatMp4File kNIMVChatTime(本地时间点)
Definition: nim_vchat_def.h:569
static const char * kNIMVChatCustomVideo
int 是否用自主的视频数据 >0表示是
Definition: nim_vchat_def.h:499
static const char * kNIMVChatRecord
int 是否需要录制音频数据 >0表示是 (需要服务器配置支持,本地录制直接调用接口函数)
Definition: nim_vchat_def.h:503
static const char * kNIMVChatServerSettingPath
string 服务器配置文件路径
Definition: nim_vchat_def.h:454
static const char * kNIMVChatAudio
key 音频
Definition: nim_vchat_def.h:585
NIMVChatAudioRecordCode
Definition: nim_vchat_def.h:189
@ kNIMVChatAudioRecordOutDiskSpace
录制结束,磁盘空间不足
Definition: nim_vchat_def.h:193
@ kNIMVChatAudioRecordExsit
已经存在
Definition: nim_vchat_def.h:197
@ kNIMVChatAudioRecordInvalid
通话不存在
Definition: nim_vchat_def.h:201
@ kNIMVChatAudioRecordCreate
文件创建成功
Definition: nim_vchat_def.h:195
@ kNIMVChatAudioRecordCreateError
文件创建失败
Definition: nim_vchat_def.h:199
@ kNIMVChatAudioRecordClose
录制正常结束
Definition: nim_vchat_def.h:191
NIMVChatVideoFrameRate
Definition: nim_vchat_def.h:129
@ kNIMVChatVideoFrameRate10
视频通话帧率 最大取每秒10帧
Definition: nim_vchat_def.h:135
@ kNIMVChatVideoFrameRate5
视频通话帧率 最大取每秒5帧
Definition: nim_vchat_def.h:133
@ kNIMVChatVideoFrameRate20
视频通话帧率 最大取每秒20帧
Definition: nim_vchat_def.h:139
@ kNIMVChatVideoFrameRate15
视频通话帧率 最大取每秒15帧
Definition: nim_vchat_def.h:137
@ kNIMVChatVideoFrameRateNormal
视频通话帧率默认值,最大取每秒15帧
Definition: nim_vchat_def.h:131
@ kNIMVChatVideoFrameRate25
视频通话帧率 最大取每秒25帧
Definition: nim_vchat_def.h:141
static const char * kNIMVChatStatus
int 状态
Definition: nim_vchat_def.h:553
static const char * kNIMVChatVideoFrameRate
int 视频画面帧率 NIMVChatVideoFrameRate
Definition: nim_vchat_def.h:515
static const char * kNIMVChatRecordType
int 服务器录制模式NIMVChatServRecordType,默认为0 (需要服务器配置支持,并且开kNIMVChatRecord,kNIMVChatVideoRecord其中一个)
Definition: nim_vchat_def.h:507
static const char * kNIMVChatRTMPLayoutMode
必填 int 连麦方式
Definition: nim_vchat_def.h:631
NIMVChatVideoEncodeMode
Definition: nim_vchat_def.h:145
@ kNIMVChatVEModeFramerate
流畅优先
Definition: nim_vchat_def.h:149
@ kNIMVChatVEModeNormal
默认值,清晰优先
Definition: nim_vchat_def.h:147
@ kNIMVChatVEModeQuality
清晰优先
Definition: nim_vchat_def.h:151
@ kNIMVChatVEModeScreen
屏幕共享场景调控策略,sdk不会根据网络调整分辨率
Definition: nim_vchat_def.h:153
NIMVChatVideoFrameScaleType
Definition: nim_vchat_def.h:157
@ kNIMVChatVideoFrameScale16x9
裁剪成16:9的形状
Definition: nim_vchat_def.h:165
@ kNIMVChatVideoFrameScale1x1
裁剪成1:1的形状
Definition: nim_vchat_def.h:161
@ kNIMVChatVideoFrameScale4x3
裁剪成4:3的形状,如果是
Definition: nim_vchat_def.h:163
@ kNIMVChatVideoFrameScaleNone
默认,不裁剪
Definition: nim_vchat_def.h:159
static const char * kNIMVChatNeedBadge
int 是否需要角标计数 >0表示是 默认是
Definition: nim_vchat_def.h:531
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
static const char * kNIMVChatRTMPTasks
array 推流参数配置,可以配置多个
Definition: nim_vchat_def.h:625
static const char * kNIMVChatMp4AudioType
int mp4录制时音频情况,0标识只录制当前成员,1标识录制通话全部混音(等同音频文件录制的声音)
Definition: nim_vchat_def.h:605
static const char * kNIMVChatFile
string 文件地址
Definition: nim_vchat_def.h:579
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
NIMVChatPublishVideoSimulcastRes
Definition: nim_vchat_def.h:415
@ kNIMVChatPublishVideoSimulcastResLow
低分辨率视频流
Definition: nim_vchat_def.h:419
@ kNIMVChatPublishVideoSimulcastResHigh
高分辨率视频流
Definition: nim_vchat_def.h:417
static const char * kNIMVChatMp4Close
key 结束Mp4录制,返回时长及原因 kNIMVChatStatus(NIMVChatMp4RecordCode) kNIMVChatTime(时长) kNIMVChatMp4File
Definition: nim_vchat_def.h:571
static const char * kNIMVChatRecordFile
string 服务器音频录制文件名(服务器开启录制时有效)
Definition: nim_vchat_def.h:557
static const char * kNIMVChatAuRecordClose
key 结束音频录制,返回时长及原因 kNIMVChatStatus(NIMVChatAudioRecordCode) kNIMVChatTime kNIMVChatFile
Definition: nim_vchat_def.h:577
NIMVChatControlType
Definition: nim_vchat_def.h:57
@ kNIMTagControlOpenAudio
打开音频
Definition: nim_vchat_def.h:59
@ kNIMTagControlEnterBackground
告诉对方自已处于后台
Definition: nim_vchat_def.h:79
@ kNIMTagControlCloseVideo
关闭视频
Definition: nim_vchat_def.h:65
@ kNIMTagControlOpenVideo
打开视频
Definition: nim_vchat_def.h:63
@ kNIMTagControlCamaraNotAvailable
告诉对方自己的摄像头不可用
Definition: nim_vchat_def.h:77
@ kNIMTagControlReceiveStartNotifyFeedback
告诉发送方自己已经收到请求了(用于通知发送方开始播放提示音)
Definition: nim_vchat_def.h:81
@ kNIMTagControlAudioToVideo
请求从音频切换到视频
Definition: nim_vchat_def.h:67
@ kNIMTagControlCloseAudio
关闭音频
Definition: nim_vchat_def.h:61
@ kNIMTagControlAgreeAudioToVideo
同意从音频切换到视频
Definition: nim_vchat_def.h:69
@ kNIMTagControlBusyLine
占线
Definition: nim_vchat_def.h:75
@ kNIMTagControlRejectAudioToVideo
拒绝从音频切换到视频
Definition: nim_vchat_def.h:71
@ kNIMTagControlMp4StopRecord
告诉发送方自己结束录制
Definition: nim_vchat_def.h:85
@ kNIMTagControlVideoToAudio
从视频切换到音频
Definition: nim_vchat_def.h:73
@ kNIMTagControlMp4StartRecord
告诉发送方自己开始录制
Definition: nim_vchat_def.h:83
static const char * kNIMVChatRoomConfig
key 房间配置
Definition: nim_vchat_def.h:623
NIMVChatPublishVideoStreamMode
Definition: nim_vchat_def.h:408
@ kNIMVChatPublishVideoSingleStream
发布单流模式(默认)
Definition: nim_vchat_def.h:410
@ kNIMVChatPublishVideoDualStream
发布双流模式
Definition: nim_vchat_def.h:412
static const char * kNIMVChatUids
StrArray 帐号, ack无效
Definition: nim_vchat_def.h:493
NIMVChatPubSubNotifyType
Definition: nim_vchat_def.h:388
@ kNIMVChatNotifyUnsubscribeVideoRet
本地取消订阅远端视频操作的结果返回通知
Definition: nim_vchat_def.h:400
@ kNIMVChatNotifyRemoteUnpublishVideo
远端视频停止发布通知
Definition: nim_vchat_def.h:396
@ kNIMVChatNotifyUnpublishVideoRet
本地取消视频发布操作的结果返回通知
Definition: nim_vchat_def.h:392
@ kNIMVChatNotifyUnsubscribeAudioRet
本地取消订阅远端音频操作的结果返回通知
Definition: nim_vchat_def.h:404
@ kNIMVChatNotifySubscribeVideoRet
本地订阅远端视频操作的结果返回通知
Definition: nim_vchat_def.h:398
@ kNIMVChatNotifyPublishVideoRet
本地视频发布操作的结果返回通知
Definition: nim_vchat_def.h:390
@ kNIMVChatNotifyRemotePublishVideo
远端视频发布通知
Definition: nim_vchat_def.h:394
@ kNIMVChatNotifySubscribeAudioRet
本地订阅远端音频操作的结果返回通知
Definition: nim_vchat_def.h:402
static const char * kNIMNetDetectRttmax
int rtt 最大值
Definition: nim_vchat_def.h:478
NIMVChatServRecordType
Definition: nim_vchat_def.h:378
@ kNIMVChatServRecordMixed
服务器录制只混录
Definition: nim_vchat_def.h:382
@ kNIMVChatServRecordSingle
服务器录制只录本人单人文件
Definition: nim_vchat_def.h:384
@ kNIMVChatServRecordMixedSingle
服务器录制混录并带单人文件
Definition: nim_vchat_def.h:380
static const char * kNIMVChatPushEnable
int 是否需要推送 >0表示是 默认是
Definition: nim_vchat_def.h:529
static const char * kNIMVChatVideoRecord
int 是否需要录制视频数据 >0表示是 (需要服务器配置支持,本地录制直接调用接口函数)
Definition: nim_vchat_def.h:505
NIMVideoChatSessionStatus
Definition: nim_vchat_def.h:254
@ kNIMVideoChatSessionStatusJoined
成员进入
Definition: nim_vchat_def.h:256
@ kNIMVideoChatSessionStatusLeaved
成员退出
Definition: nim_vchat_def.h:258
static const char * kNIMVChatLostRate
int 丢包率,单位是百分比
Definition: nim_vchat_def.h:593
static const char * kNIMNetDetectRttmin
int rtt 最小值
Definition: nim_vchat_def.h:480
static const char * kNIMVChatNeedFromNick
int 是否需要推送昵称 >0表示是 默认是
Definition: nim_vchat_def.h:533
static const char * kNIMVChatAccount
用户账号 string
Definition: nim_vchat_def.h:644
static const char * kNIMVChatStaticInfo
key 音视频实时状态
Definition: nim_vchat_def.h:587
NIMVChatVideoQuality
Definition: nim_vchat_def.h:111
@ kNIMVChatVideoQualityNormal
视频默认分辨率 480x360
Definition: nim_vchat_def.h:113
@ kNIMVChatVideoQuality720p
用于桌面分享级别的分辨率1280x720,需要使用高清摄像头并指定对应的分辨率,或者自定义通道传输
Definition: nim_vchat_def.h:125
@ kNIMVChatVideoQuality540p
介于720P与480P之间的类型,默认 960*540
Definition: nim_vchat_def.h:123
@ kNIMVChatVideoQualityLow
视频低分辨率 256x144
Definition: nim_vchat_def.h:115
@ kNIMVChatVideoQualityHigh
视频高分辨率 480x360
Definition: nim_vchat_def.h:119
@ kNIMVChatVideoQualitySuper
视频超高分辨率 640x480
Definition: nim_vchat_def.h:121
@ kNIMVChatVideoQualityMedium
视频中分辨率 352x288
Definition: nim_vchat_def.h:117
static const char * kNIMVChatRTMPTaskID
必填 string 推流任务ID
Definition: nim_vchat_def.h:627
static const char * kNIMVChatBypassRtmp
int 是否旁路推流(如果rtmpurl为空是连麦观众,非空是主播的推流控制), >0表示是
Definition: nim_vchat_def.h:521
static const char * kNIMVChatRTMPRecord
选填 bool 推流参数配置
Definition: nim_vchat_def.h:635
static const char * kNIMVChatRtmpRecord
int 是否开启服务器对直播推流录制(需要开启服务器能力), >0表示是
Definition: nim_vchat_def.h:523
NIMVChatConnectErrorCode
Definition: nim_vchat_def.h:282
@ kNIMVChatConnectInvalidRequst
错误请求
Definition: nim_vchat_def.h:312
@ kNIMVChatJoinChannelClosed
频道已经关闭
Definition: nim_vchat_def.h:302
@ kNIMVChatVersionSelfLow
本人SDK版本太低不兼容
Definition: nim_vchat_def.h:322
@ kNIMVChatConnectDisconn
断开连接
Definition: nim_vchat_def.h:284
@ kNIMVChatConnectMeetingModeError
会议模式错误
Definition: nim_vchat_def.h:290
@ kNIMVChatConnectLogout
退出
Definition: nim_vchat_def.h:316
@ kNIMVChatConnectLayoutError
主播自定义布局错误
Definition: nim_vchat_def.h:306
@ kNIMVChatVersionRemoteLow
对方SDK版本太低不兼容
Definition: nim_vchat_def.h:324
@ kNIMVChatLocalChannelClosed
通道被关闭
Definition: nim_vchat_def.h:326
@ kNIMVChatConnectTimeout
超时
Definition: nim_vchat_def.h:288
@ kNIMVChatConnectDesKey
密码加密错误
Definition: nim_vchat_def.h:310
@ kNIMVChatLocalChannelKicked
账号被踢
Definition: nim_vchat_def.h:328
@ kNIMVChatConnectRtmpNodesError
超过频道最多rtmp人数限制
Definition: nim_vchat_def.h:294
@ kNIMVChatConnectInvalidParam
错误参数
Definition: nim_vchat_def.h:308
@ kNIMVChatConnectServerUnknown
服务器内部错误
Definition: nim_vchat_def.h:314
@ kNIMVChatChannelStartFail
发起失败
Definition: nim_vchat_def.h:318
@ kNIMVChatConnectSuccess
成功
Definition: nim_vchat_def.h:304
@ kNIMVChatChannelDisconnected
断开连接
Definition: nim_vchat_def.h:320
@ kNIMVChatConnectRtmpCreateError
需要旁路直播, 但频道创建者非主播
Definition: nim_vchat_def.h:298
@ kNIMVChatConnectRtmpModeError
rtmp用户加入非rtmp频道
Definition: nim_vchat_def.h:292
@ kNIMVChatConnectStartFail
启动失败
Definition: nim_vchat_def.h:286
@ kNIMVChatJoinServerValidError
服务器验证内部错误
Definition: nim_vchat_def.h:300
@ kNIMVChatConnectRtmpHostError
已经存在一个主播
Definition: nim_vchat_def.h:296
static const char * kNIMVChatKeepCalling
int, 是否强制持续呼叫(对方离线也会呼叫),1表示是,0表示否。默认是
Definition: nim_vchat_def.h:539
NIMVideoChatSessionNetStat
Definition: nim_vchat_def.h:270
@ kNIMVideoChatSessionNetStatPoor
网络状态较差
Definition: nim_vchat_def.h:276
@ kNIMVChatNetStatusVideoClose
网络状态极差,视频强制关闭
Definition: nim_vchat_def.h:272
@ kNIMVideoChatSessionNetStatBad
网络状态很差
Definition: nim_vchat_def.h:278
@ kNIMVideoChatSessionNetStatGood
网络状态较好
Definition: nim_vchat_def.h:274
static const char * kNIMVChatRtmpUrl
string 直播推流地址(加入多人时有效),非空代表主播旁路直播, kNIMVChatBypassRtmp决定是否开始推流
Definition: nim_vchat_def.h:519
static const char * kNIMNetDetectType
int32 探测类型NIMNetDetectType
Definition: nim_vchat_def.h:465
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
static const char * kNIMNetDetectQualityType
int32 kNIMNetDetectTypeVideo时有效,默认为0,视频探测类型NIMNetDetectVideoQuality
Definition: nim_vchat_def.h:467
static const char * kNIMVChatApnsPayload
string JSON格式,推送payload
Definition: nim_vchat_def.h:535
static const char * kNIMVChatAuRecordStart
key 音频录制写入数据开始 kNIMVChatFile kNIMVChatTime
Definition: nim_vchat_def.h:575
static const char * kNIMVChatRHostSpeaker
int 服务器混录时指定本人主画面,默认为0, 非0表示打开(需要服务器配置支持,及录制模式打开混录,并且为多人中的第一个主画面配置)
Definition: nim_vchat_def.h:509
static const char * kNIMVChatSessionId
string 发起会话的标识id,将在创建通话及结束通话时有效,帮助针对无channelid的情况下进行映射
Definition: nim_vchat_def.h:495
static const char * kNIMNetDetectRttavg
int rtt 平均值
Definition: nim_vchat_def.h:482
NIMMainPictureOptCode
Definition: nim_vchat_def.h:358
@ kNIMMainPictureOptRoomNotExist
房间不存在
Definition: nim_vchat_def.h:364
@ kNIMMainPictureOptError
内部错误
Definition: nim_vchat_def.h:370
@ kNIMMainPictureOptSucess
操作成功
Definition: nim_vchat_def.h:360
@ kNIMMainPictureOptUidNotExist
房间下的uid不存在
Definition: nim_vchat_def.h:366
@ kNIMMainPictureOptServerError
服务器内部错误
Definition: nim_vchat_def.h:372
@ kNIMMainPictureOptInvalid
无效的操作
Definition: nim_vchat_def.h:374
@ kNIMMainPictureOptDataError
请求数据不对
Definition: nim_vchat_def.h:368
@ kNIMMainPictureOptAuthError
认证错误
Definition: nim_vchat_def.h:362
static const char * kNIMNetDetectRttmdev
int rtt 偏差值 mdev
Definition: nim_vchat_def.h:484
static const char * kNIMVChatTrafficStatRX
uint64 下行流量(字节)
Definition: nim_vchat_def.h:613
static const char * kNIMVChatSplitMode
int 主播控制的直播推流时的分屏模式,见NIMVChatVideoSplitMode
Definition: nim_vchat_def.h:525
static const char * kNIMVChatMp4Height
int 录制的mp4的高度,默认为0,小于16无效,无效时取视频默认大小
Definition: nim_vchat_def.h:611
NIMVChatAudioMode
Definition: nim_vchat_def.h:242
@ kNIMVChatAdModeNormal
窄带
Definition: nim_vchat_def.h:246
@ kNIMVChatAdModeHighVoip
高清语音
Definition: nim_vchat_def.h:248
@ kNIMVChatAdModeDefault
默认值,为kNIMVChatAdModeHighVoip
Definition: nim_vchat_def.h:244
@ kNIMVChatAdModeHighMusic
高清音乐。注意:高清音乐模式仅限耳机场景下使用,其他场景可能导致音频质量不佳
Definition: nim_vchat_def.h:250
static const char * kNIMVChatUid
string 帐号
Definition: nim_vchat_def.h:551
static const char * kNIMVChatVideoQuality
int 视频聊天分辨率选择 NIMVChatVideoQuality
Definition: nim_vchat_def.h:513
static const char * kNIMVChatMp4Recode
bool mp4录制时重新编码开关
Definition: nim_vchat_def.h:607
static const char * kNIMVChatVideoSimulcastResList
json array 订阅发布视频分辨率类型列表
Definition: nim_vchat_def.h:617
static const char * kNIMVChatCustomLayout
string 自定义布局,当主播选择kNIMVChatSplitCustomLayout或kNIMVChatSplitAudioLayout模式时生效
Definition: nim_vchat_def.h:527
static const char * kNIMVChatMp4Width
int 录制的mp4的宽度,默认为0,小于16无效,无效时取视频默认大小
Definition: nim_vchat_def.h:609
static const char * kNIMVChatLiveState
key 直播状态 kNIMVChatStatus(NIMVChatLiveStateCode)
Definition: nim_vchat_def.h:603
static const char * kNIMVChatAudioVolume
key 音频实时音量通知,包含发送的音量kNIMVChatSelf和接收音量kNIMVChatReceiver,kNIMVChatStatus的音量值是pcm的平均值最大为int16_max
Definition: nim_vchat_def.h:597
static const char * kNIMVChatAccept
int 是否接受 >0表示接受
Definition: nim_vchat_def.h:565
static const char * kNIMVChatKBPS
int 每秒流量,单位为“千字节”
Definition: nim_vchat_def.h:591
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
NIMVChatPubSubErrorCode
Definition: nim_vchat_def.h:423
@ kNIMVChatPSErrCodeAudioMode
视频发布操作失败,当前为音频模式
Definition: nim_vchat_def.h:431
@ kNIMVChatPSErrCodeViewerMode
发布操作失败,当前为观众模式
Definition: nim_vchat_def.h:429
@ kNIMVChatPSErrCodeForbid
操作无效,对点对模式不支持订阅相关功能
Definition: nim_vchat_def.h:437
@ kNIMVChatPSErrCodeSubscribed
操作无效,视频类型冲突,需要取消之前订阅的流
Definition: nim_vchat_def.h:439
@ kNIMVChatPSErrCodeOptBusy
操作繁忙
Definition: nim_vchat_def.h:433
@ kNIMVChatPSErrCodeAutoMode
模式互斥 (当前是自动发布)
Definition: nim_vchat_def.h:435
@ kNIMVChatPSErrCodeSuccess
成功
Definition: nim_vchat_def.h:425
@ kNIMVChatPSErrCodeFail
失败
Definition: nim_vchat_def.h:427
static const char * kNIMVChatCustomInfo
string 自定义数据
Definition: nim_vchat_def.h:581
static const char * kNIMVChatAudioMode
int 音频模式选择 NIMVChatAudioMode
Definition: nim_vchat_def.h:517
static const char * kNIMVChatSelf
key 本人信息
Definition: nim_vchat_def.h:599
static const char * kNIMNetDetectTaskId
uint64 任务id
Definition: nim_vchat_def.h:474
static const char * kNIMVChatTrafficStatTX
uint64 上行流量(字节)
Definition: nim_vchat_def.h:615
static const char * kNIMVChatMaxVideoRate
int 视频发送编码码率 >=100000 <=5000000有效
Definition: nim_vchat_def.h:511
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
NIMVChatVideoSplitMode
Definition: nim_vchat_def.h:205
@ kNIMVChatSplitTopHorFloating
顶部横排浮窗
Definition: nim_vchat_def.h:209
@ kNIMVChatSplitLatticeCuttingTile
裁剪平铺
Definition: nim_vchat_def.h:213
@ kNIMVChatSplitBottomHorFloating
底部横排浮窗
Definition: nim_vchat_def.h:207
@ kNIMVChatSplitAudioLayout
纯音频布局
Definition: nim_vchat_def.h:217
@ kNIMVChatSplitLatticeTile
平铺
Definition: nim_vchat_def.h:211
@ kNIMVChatSplitCustomLayout
自定义布局
Definition: nim_vchat_def.h:215
static const char * kNIMVChatRtt
int rtt 网络延迟
Definition: nim_vchat_def.h:595
static const char * kNIMVChatRTMPLayoutPara
选填 string 自定义布局参数,仅对kNIMVChatSplitCustomLayout,kNIMVChatSplitAudioLayout模式有效
Definition: nim_vchat_def.h:633
static const char * kNIMVChatMp4File
string mp4录制地址
Definition: nim_vchat_def.h:573
static const char * kNIMVChatTimeout
bool 是呼叫超时 true 是,false 否
Definition: nim_vchat_def.h:497
static const char * kNIMNetDetectTimeLimit
int32 毫秒级的探测时长限制
Definition: nim_vchat_def.h:463
static const char * kNIMVChatReceiver
key 接收信息
Definition: nim_vchat_def.h:601
static const char * kNIMVChatTime
int64 时间 单位毫秒
Definition: nim_vchat_def.h:563
NIMVideoChatMode
Definition: nim_vchat_def.h:89
@ kNIMVideoChatModeAudio
语音通话模式
Definition: nim_vchat_def.h:91
@ kNIMVideoChatModeVideo
视频通话模式
Definition: nim_vchat_def.h:93
static const char * kNIMVChatVEncodeMode
int, 使用的视频编码策略NIMVChatVideoEncodeMode, 默认kNIMVChatVEModeNormal
Definition: nim_vchat_def.h:541
static const char * kNIMVChatClient
int 客户端类型 NIMClientType见nim_client_def.h
Definition: nim_vchat_def.h:567
static const char * kNIMVChatType
int 状态
Definition: nim_vchat_def.h:561
static const char * kNIMVChatRTMPMainScreenAccid
选填 string 指定主屏显示的帐号
Definition: nim_vchat_def.h:637
void(* nim_vchat_rate_callback)(bool ret, int response_code, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:750
static const char * kNIMNetDetectLoss
int 丢包率百分比
Definition: nim_vchat_def.h:476
static const char * kNIMVChatFPS
int 每秒帧率或者每秒发包数
Definition: nim_vchat_def.h:589
static const char * kNIMVChatRecordAddr
string 录制地址(服务器开启录制时有效)
Definition: nim_vchat_def.h:555
NIMVChatMp4RecordCode
Definition: nim_vchat_def.h:169
@ kNIMVChatMp4RecordExsit
MP4文件已经存在
Definition: nim_vchat_def.h:181
@ kNIMVChatMp4RecordInvalid
通话不存在
Definition: nim_vchat_def.h:185
@ kNIMVChatMp4RecordThreadBusy
MP4结束,录制线程繁忙
Definition: nim_vchat_def.h:177
@ kNIMVChatMp4RecordClose
MP4结束
Definition: nim_vchat_def.h:171
@ kNIMVChatMp4RecordVideoSizeError
MP4结束,视频画面大小变化
Definition: nim_vchat_def.h:173
@ kNIMVChatMp4RecordCreateError
MP4文件创建失败
Definition: nim_vchat_def.h:183
@ kNIMVChatMp4RecordCreate
MP4文件创建
Definition: nim_vchat_def.h:179
@ kNIMVChatMp4RecordOutDiskSpace
MP4结束,磁盘空间不足
Definition: nim_vchat_def.h:175
static const char * kNIMNetDetectDetail
string 扩展信息
Definition: nim_vchat_def.h:486
NIMVChatLiveStateCode
Definition: nim_vchat_def.h:221
@ kNIMVChatLiveStateConnectted
连接成功
Definition: nim_vchat_def.h:228
@ kNIMVChatLiveStateInitial
Definition: nim_vchat_def.h:222
@ kNIMVChatLiveStatePushFail
互动直播推流失败
Definition: nim_vchat_def.h:234
@ kNIMVChatLiveStatePeopleLimit
人数超出限制
Definition: nim_vchat_def.h:238
@ kNIMVChatLiveStateLayoutError
主播设置定制布局,布局参数错误
Definition: nim_vchat_def.h:224
@ kNIMVChatLiveStateStartConnecting
开始连接
Definition: nim_vchat_def.h:226
@ kNIMVChatLiveStateConnectFail
连接失败
Definition: nim_vchat_def.h:230
@ kNIMVChatLiveStateInnerError
内部错误
Definition: nim_vchat_def.h:236
@ kNIMVChatLiveStatePushing
推流中
Definition: nim_vchat_def.h:232
static const char * kNIMVChatRTMPURL
必填 string 推流地址
Definition: nim_vchat_def.h:629
NIMVideoChatUserLeftType
Definition: nim_vchat_def.h:262
@ kNIMVChatUserLeftTimeout
成员超时掉线
Definition: nim_vchat_def.h:264
@ kNIMVChatUserLeftNormal
成员离开
Definition: nim_vchat_def.h:266
NIMNetDetectVideoQuality
Definition: nim_vchat_def.h:340
@ kNIMNDVideoQuality720p
1280*720
Definition: nim_vchat_def.h:354
@ kNIMNDVideoQualityMedium
352*288
Definition: nim_vchat_def.h:346
@ kNIMNDVideoQualityLow
256*144
Definition: nim_vchat_def.h:344
@ kNIMNDVideoQuality480p
640*480
Definition: nim_vchat_def.h:350
@ kNIMNDVideoQuality540p
960*540
Definition: nim_vchat_def.h:352
@ kNIMNDVideoQualityHigh
480*360
Definition: nim_vchat_def.h:348
@ kNIMNDVideoQualityDefault
480P
Definition: nim_vchat_def.h:342
static const char * kNIMVChatCustomAudio
int 是否用自主的音频数据 >0表示是
Definition: nim_vchat_def.h:501
NIMVChatConnectStatus
Definition: nim_vchat_def.h:97
@ kNIMVChatReConnecting
正在重新连接中
Definition: nim_vchat_def.h:105
@ kNIMVChatDisconnect
连接断开
Definition: nim_vchat_def.h:107
@ kNIMVChatConnecting
正在连接中
Definition: nim_vchat_def.h:101
@ kNIMVChatConnected
正在通话中
Definition: nim_vchat_def.h:103
@ kNIMVChatConnectNone
不在通话中
Definition: nim_vchat_def.h:99
static const char * kNIMVChatVideoRecordFile
string 服务器视频录制文件名(服务器开启录制时有效)
Definition: nim_vchat_def.h:559
NIMVideoChatSessionType
Definition: nim_vchat_def.h:17
@ kNIMVideoChatSessionTypeStartRes
创建通话结果
Definition: nim_vchat_def.h:19
@ kNIMVideoChatSessionTypeConnect
通话中链接状态通知
Definition: nim_vchat_def.h:31
@ kNIMVideoChatSessionTypeControlRes
NIMVChatControlType 结果
Definition: nim_vchat_def.h:27
@ kNIMVideoChatSessionTypeCalleeAckRes
确认通话,接受拒绝结果
Definition: nim_vchat_def.h:23
@ kNIMVideoChatSessionTypeInfoNotify
通知实时音视频数据状态
Definition: nim_vchat_def.h:45
@ kNIMVideoChatSessionTypeCalleeAckNotify
确认通话,接受拒绝通知
Definition: nim_vchat_def.h:25
@ kNIMVideoChatSessionTypeNetStatus
通话中网络状态
Definition: nim_vchat_def.h:35
@ kNIMVideoChatSessionTypeSyncAckNotify
通话接听挂断同步通知
Definition: nim_vchat_def.h:41
@ kNIMVideoChatSessionTypeHangupRes
通话挂断结果
Definition: nim_vchat_def.h:37
@ kNIMVideoChatSessionTypeLiveState
通知直播推流的服务器状态
Definition: nim_vchat_def.h:51
@ kNIMVideoChatSessionTypePubSubNotify
通知订阅相关通知
Definition: nim_vchat_def.h:53
@ kNIMVideoChatSessionTypeInviteNotify
通话邀请
Definition: nim_vchat_def.h:21
@ kNIMVideoChatSessionTypeMp4Notify
通知MP4录制状态,包括开始录制和结束录制
Definition: nim_vchat_def.h:43
@ kNIMVideoChatSessionTypeVolumeNotify
通知实时音频发送和混音的音量状态
Definition: nim_vchat_def.h:47
@ kNIMVideoChatSessionTypeAuRecordNotify
通知音频录制状态,包括开始录制和结束录制
Definition: nim_vchat_def.h:49
@ kNIMVideoChatSessionTypePeopleStatus
通话中成员状态
Definition: nim_vchat_def.h:33
@ kNIMVideoChatSessionTypeControlNotify
NIMVChatControlType 通知
Definition: nim_vchat_def.h:29
@ kNIMVideoChatSessionTypeHangupNotify
通话被挂断通知
Definition: nim_vchat_def.h:39
static const char * kNIMNetDetectAppKey
string 用户的app key
Definition: nim_vchat_def.h:461
NIMNetDetectType
Definition: nim_vchat_def.h:332
@ kNIMNetDetectTypeVideo
视频探测
Definition: nim_vchat_def.h:336
@ kNIMNetDetectTypeAudio
默认值,音频探测
Definition: nim_vchat_def.h:334
void(* nim_vchat_opt_cb_func)(bool ret, int code, const char *json_extension, const void *user_data)
Definition: nim_vchat_def.h:730
NIMVChatServerSubscribeFallbackStrategy
Definition: nim_vchat_def.h:443
@ kNIMVChatSteamFallbackStrategyAudioOnly
默认策略允许服务器切小流、关视频
Definition: nim_vchat_def.h:447
@ kNIMVChatSteamFallbackStrategyDisabled
禁用服务器弱网切流策略
Definition: nim_vchat_def.h:445
static const char * kNIMVChatVideo
key 视频
Definition: nim_vchat_def.h:583
static const char * kNIMVChatServerSubscribeFallbackStrategy
int,服务器在下行弱网的时候切流策略NIMVChatServerSubscribeFallbackStrategy, 默认kNIMVChatSteamFallbackStrategyAudioOnly
Definition: nim_vchat_def.h:543
static const char * kNIMVChatSound
string 推送声音
Definition: nim_vchat_def.h:537
NIM SDK 及 NIM ChatRoom SDK 公用头文件