|
enum | NIMVideoChatSessionType {
kNIMVideoChatSessionTypeStartRes = 1
, kNIMVideoChatSessionTypeInviteNotify = 2
, kNIMVideoChatSessionTypeCalleeAckRes = 3
, kNIMVideoChatSessionTypeCalleeAckNotify = 4
,
kNIMVideoChatSessionTypeControlRes = 5
, kNIMVideoChatSessionTypeControlNotify = 6
, kNIMVideoChatSessionTypeConnect = 7
, kNIMVideoChatSessionTypePeopleStatus = 8
,
kNIMVideoChatSessionTypeNetStatus = 9
, kNIMVideoChatSessionTypeHangupRes = 10
, kNIMVideoChatSessionTypeHangupNotify = 11
, kNIMVideoChatSessionTypeSyncAckNotify = 12
,
kNIMVideoChatSessionTypeMp4Notify = 13
, kNIMVideoChatSessionTypeInfoNotify = 14
, kNIMVideoChatSessionTypeVolumeNotify = 15
, kNIMVideoChatSessionTypeAuRecordNotify = 16
,
kNIMVideoChatSessionTypeLiveState = 17
, kNIMVideoChatSessionTypePubSubNotify = 18
} |
|
enum | NIMVChatControlType {
kNIMTagControlOpenAudio = 1
, kNIMTagControlCloseAudio = 2
, kNIMTagControlOpenVideo = 3
, kNIMTagControlCloseVideo = 4
,
kNIMTagControlAudioToVideo = 5
, kNIMTagControlAgreeAudioToVideo = 6
, kNIMTagControlRejectAudioToVideo = 7
, kNIMTagControlVideoToAudio = 8
,
kNIMTagControlBusyLine = 9
, kNIMTagControlCamaraNotAvailable = 10
, kNIMTagControlEnterBackground = 11
, kNIMTagControlReceiveStartNotifyFeedback = 12
,
kNIMTagControlMp4StartRecord = 13
, kNIMTagControlMp4StopRecord = 14
} |
|
enum | NIMVideoChatMode { kNIMVideoChatModeAudio = 1
, kNIMVideoChatModeVideo = 2
} |
|
enum | NIMVChatConnectStatus {
kNIMVChatConnectNone = 0
, kNIMVChatConnecting = 1
, kNIMVChatConnected = 2
, kNIMVChatReConnecting = 3
,
kNIMVChatDisconnect = 4
} |
|
enum | NIMVChatVideoQuality {
kNIMVChatVideoQualityNormal = 0
, kNIMVChatVideoQualityLow = 1
, kNIMVChatVideoQualityMedium = 2
, kNIMVChatVideoQualityHigh = 3
,
kNIMVChatVideoQualitySuper = 4
, kNIMVChatVideoQuality540p = 5
, kNIMVChatVideoQuality720p = 6
} |
|
enum | NIMVChatVideoFrameRate {
kNIMVChatVideoFrameRateNormal = 0
, kNIMVChatVideoFrameRate5 = 1
, kNIMVChatVideoFrameRate10 = 2
, kNIMVChatVideoFrameRate15 = 3
,
kNIMVChatVideoFrameRate20 = 4
, kNIMVChatVideoFrameRate25 = 5
} |
|
enum | NIMVChatVideoEncodeMode { kNIMVChatVEModeNormal = 0
, kNIMVChatVEModeFramerate = 1
, kNIMVChatVEModeQuality = 2
, kNIMVChatVEModeScreen = 3
} |
|
enum | NIMVChatVideoFrameScaleType { kNIMVChatVideoFrameScaleNone = 0
, kNIMVChatVideoFrameScale1x1 = 1
, kNIMVChatVideoFrameScale4x3 = 2
, kNIMVChatVideoFrameScale16x9 = 3
} |
|
enum | NIMVChatMp4RecordCode {
kNIMVChatMp4RecordClose = 0
, kNIMVChatMp4RecordVideoSizeError = 1
, kNIMVChatMp4RecordOutDiskSpace = 2
, kNIMVChatMp4RecordThreadBusy = 3
,
kNIMVChatMp4RecordCreate = 200
, kNIMVChatMp4RecordExsit = 400
, kNIMVChatMp4RecordCreateError = 403
, kNIMVChatMp4RecordInvalid = 404
} |
|
enum | NIMVChatAudioRecordCode {
kNIMVChatAudioRecordClose = 0
, kNIMVChatAudioRecordOutDiskSpace = 2
, kNIMVChatAudioRecordCreate = 200
, kNIMVChatAudioRecordExsit = 400
,
kNIMVChatAudioRecordCreateError = 403
, kNIMVChatAudioRecordInvalid = 404
} |
|
enum | NIMVChatVideoSplitMode {
kNIMVChatSplitBottomHorFloating = 0
, kNIMVChatSplitTopHorFloating = 1
, kNIMVChatSplitLatticeTile = 2
, kNIMVChatSplitLatticeCuttingTile = 3
,
kNIMVChatSplitCustomLayout = 4
, kNIMVChatSplitAudioLayout = 5
} |
|
enum | NIMVChatLiveStateCode {
kNIMVChatLiveStateInitial = 500
, kNIMVChatLiveStateLayoutError = 501
, kNIMVChatLiveStateStartConnecting = 502
, kNIMVChatLiveStateConnectted = 503
,
kNIMVChatLiveStateConnectFail = 504
, kNIMVChatLiveStatePushing = 505
, kNIMVChatLiveStatePushFail = 506
, kNIMVChatLiveStateInnerError = 507
,
kNIMVChatLiveStatePeopleLimit = 508
} |
|
enum | NIMVChatAudioMode { kNIMVChatAdModeDefault = 0
, kNIMVChatAdModeNormal = 1
, kNIMVChatAdModeHighVoip = 2
, kNIMVChatAdModeHighMusic = 3
} |
|
enum | NIMVideoChatSessionStatus { kNIMVideoChatSessionStatusJoined = 0
, kNIMVideoChatSessionStatusLeaved = 1
} |
|
enum | NIMVideoChatUserLeftType { kNIMVChatUserLeftTimeout = -1
, kNIMVChatUserLeftNormal = 0
} |
|
enum | NIMVideoChatSessionNetStat { kNIMVChatNetStatusVideoClose = -1
, kNIMVideoChatSessionNetStatGood = 0
, kNIMVideoChatSessionNetStatPoor = 1
, kNIMVideoChatSessionNetStatBad = 2
} |
|
enum | NIMVChatConnectErrorCode {
kNIMVChatConnectDisconn = 0
, kNIMVChatConnectStartFail = 1
, kNIMVChatConnectTimeout = 101
, kNIMVChatConnectMeetingModeError = 102
,
kNIMVChatConnectRtmpModeError = 103
, kNIMVChatConnectRtmpNodesError = 104
, kNIMVChatConnectRtmpHostError = 105
, kNIMVChatConnectRtmpCreateError = 106
,
kNIMVChatJoinServerValidError = 107
, kNIMVChatJoinChannelClosed = 108
, kNIMVChatConnectSuccess = 200
, kNIMVChatConnectLayoutError = 208
,
kNIMVChatConnectInvalidParam = 400
, kNIMVChatConnectDesKey = 401
, kNIMVChatConnectInvalidRequst = 417
, kNIMVChatConnectServerUnknown = 500
,
kNIMVChatConnectLogout = 1001
, kNIMVChatChannelStartFail = 11000
, kNIMVChatChannelDisconnected = 11001
, kNIMVChatVersionSelfLow = 11002
,
kNIMVChatVersionRemoteLow = 11003
, kNIMVChatLocalChannelClosed = 11004
, kNIMVChatLocalChannelKicked = 11005
} |
|
enum | NIMNetDetectType { kNIMNetDetectTypeAudio = 0
, kNIMNetDetectTypeVideo = 1
} |
|
enum | NIMNetDetectVideoQuality {
kNIMNDVideoQualityDefault = 0
, kNIMNDVideoQualityLow = 1
, kNIMNDVideoQualityMedium = 2
, kNIMNDVideoQualityHigh = 3
,
kNIMNDVideoQuality480p = 4
, kNIMNDVideoQuality540p = 5
, kNIMNDVideoQuality720p = 6
} |
|
enum | NIMMainPictureOptCode {
kNIMMainPictureOptSucess = 200
, kNIMMainPictureOptAuthError = 401
, kNIMMainPictureOptRoomNotExist = 404
, kNIMMainPictureOptUidNotExist = 405
,
kNIMMainPictureOptDataError = 417
, kNIMMainPictureOptError = 500
, kNIMMainPictureOptServerError = 600
, kNIMMainPictureOptInvalid = 11403
} |
|
enum | NIMVChatServRecordType { kNIMVChatServRecordMixedSingle = 0
, kNIMVChatServRecordMixed = 1
, kNIMVChatServRecordSingle = 2
} |
|
enum | NIMVChatPubSubNotifyType {
kNIMVChatNotifyPublishVideoRet = 0
, kNIMVChatNotifyUnpublishVideoRet = 1
, kNIMVChatNotifyRemotePublishVideo = 2
, kNIMVChatNotifyRemoteUnpublishVideo = 3
,
kNIMVChatNotifySubscribeVideoRet = 4
, kNIMVChatNotifyUnsubscribeVideoRet = 5
, kNIMVChatNotifySubscribeAudioRet = 6
, kNIMVChatNotifyUnsubscribeAudioRet = 7
} |
|
enum | NIMVChatPublishVideoStreamMode { kNIMVChatPublishVideoSingleStream = 0
, kNIMVChatPublishVideoDualStream = 1
} |
|
enum | NIMVChatPublishVideoSimulcastRes { kNIMVChatPublishVideoSimulcastResHigh = 0
, kNIMVChatPublishVideoSimulcastResLow = 2
} |
|
enum | NIMVChatPubSubErrorCode {
kNIMVChatPSErrCodeSuccess = 0
, kNIMVChatPSErrCodeFail = -1
, kNIMVChatPSErrCodeViewerMode = -200
, kNIMVChatPSErrCodeAudioMode = -300
,
kNIMVChatPSErrCodeOptBusy = -400
, kNIMVChatPSErrCodeAutoMode = -500
, kNIMVChatPSErrCodeForbid = -600
, kNIMVChatPSErrCodeSubscribed = -700
} |
|
enum | NIMVChatServerSubscribeFallbackStrategy { kNIMVChatSteamFallbackStrategyDisabled = 0
, kNIMVChatSteamFallbackStrategyAudioOnly = 2
} |
|
|
|
static const char * | kNIMVChatServerSettingPath = "server_setting_path" |
| string 服务器配置文件路径
|
|
|
static const char * | kNIMNetDetectAppKey = "app_key" |
| string 用户的app key
|
|
static const char * | kNIMNetDetectTimeLimit = "time" |
| int32 毫秒级的探测时长限制
|
|
static const char * | kNIMNetDetectType = "type" |
| int32 探测类型NIMNetDetectType
|
|
static const char * | kNIMNetDetectQualityType = "quality_type" |
| int32 kNIMNetDetectTypeVideo时有效,默认为0,视频探测类型NIMNetDetectVideoQuality
|
|
|
static const char * | kNIMNetDetectTaskId = "task_id" |
| uint64 任务id
|
|
static const char * | kNIMNetDetectLoss = "loss" |
| int 丢包率百分比
|
|
static const char * | kNIMNetDetectRttmax = "rttmax" |
| int rtt 最大值
|
|
static const char * | kNIMNetDetectRttmin = "rttmin" |
| int rtt 最小值
|
|
static const char * | kNIMNetDetectRttavg = "rttavg" |
| int rtt 平均值
|
|
static const char * | kNIMNetDetectRttmdev = "rttmdev" |
| int rtt 偏差值 mdev
|
|
static const char * | kNIMNetDetectDetail = "detailinfo" |
| string 扩展信息
|
|
|
static const char * | kNIMVChatUids = "uids" |
| StrArray 帐号, ack无效
|
|
static const char * | kNIMVChatSessionId = "session_id" |
| string 发起会话的标识id,将在创建通话及结束通话时有效,帮助针对无channelid的情况下进行映射
|
|
static const char * | kNIMVChatTimeout = "time_out" |
| bool 是呼叫超时 true 是,false 否
|
|
static const char * | kNIMVChatCustomVideo = "custom_video" |
| int 是否用自主的视频数据 >0表示是
|
|
static const char * | kNIMVChatCustomAudio = "custom_audio" |
| int 是否用自主的音频数据 >0表示是
|
|
static const char * | kNIMVChatRecord = "record" |
| int 是否需要录制音频数据 >0表示是 (需要服务器配置支持,本地录制直接调用接口函数)
|
|
static const char * | kNIMVChatVideoRecord = "video_record" |
| int 是否需要录制视频数据 >0表示是 (需要服务器配置支持,本地录制直接调用接口函数)
|
|
static const char * | kNIMVChatRecordType = "record_type" |
| int 服务器录制模式NIMVChatServRecordType,默认为0 (需要服务器配置支持,并且开kNIMVChatRecord,kNIMVChatVideoRecord其中一个)
|
|
static const char * | kNIMVChatRHostSpeaker = "r_host_speaker" |
| int 服务器混录时指定本人主画面,默认为0, 非0表示打开(需要服务器配置支持,及录制模式打开混录,并且为多人中的第一个主画面配置)
|
|
static const char * | kNIMVChatMaxVideoRate = "max_video_rate" |
| int 视频发送编码码率 >=100000 <=5000000有效
|
|
static const char * | kNIMVChatVideoQuality = "video_quality" |
| int 视频聊天分辨率选择 NIMVChatVideoQuality
|
|
static const char * | kNIMVChatVideoFrameRate = "frame_rate" |
| int 视频画面帧率 NIMVChatVideoFrameRate
|
|
static const char * | kNIMVChatAudioMode = "audio_mode" |
| int 音频模式选择 NIMVChatAudioMode
|
|
static const char * | kNIMVChatRtmpUrl = "rtmp_url" |
| string 直播推流地址(加入多人时有效),非空代表主播旁路直播, kNIMVChatBypassRtmp决定是否开始推流
|
|
static const char * | kNIMVChatBypassRtmp = "bypass_rtmp" |
| int 是否旁路推流(如果rtmpurl为空是连麦观众,非空是主播的推流控制), >0表示是
|
|
static const char * | kNIMVChatRtmpRecord = "rtmp_record" |
| int 是否开启服务器对直播推流录制(需要开启服务器能力), >0表示是
|
|
static const char * | kNIMVChatSplitMode = "split_mode" |
| int 主播控制的直播推流时的分屏模式,见NIMVChatVideoSplitMode
|
|
static const char * | kNIMVChatCustomLayout = "custom_layout" |
| string 自定义布局,当主播选择kNIMVChatSplitCustomLayout或kNIMVChatSplitAudioLayout模式时生效
|
|
static const char * | kNIMVChatPushEnable = "push_enable" |
| int 是否需要推送 >0表示是 默认是
|
|
static const char * | kNIMVChatNeedBadge = "need_badge" |
| int 是否需要角标计数 >0表示是 默认是
|
|
static const char * | kNIMVChatNeedFromNick = "need_nick" |
| int 是否需要推送昵称 >0表示是 默认是
|
|
static const char * | kNIMVChatApnsPayload = "payload" |
| string JSON格式,推送payload
|
|
static const char * | kNIMVChatSound = "sound" |
| string 推送声音
|
|
static const char * | kNIMVChatKeepCalling = "keepcalling" |
| int, 是否强制持续呼叫(对方离线也会呼叫),1表示是,0表示否。默认是
|
|
static const char * | kNIMVChatVEncodeMode = "v_encode_mode" |
| int, 使用的视频编码策略NIMVChatVideoEncodeMode, 默认kNIMVChatVEModeNormal
|
|
static const char * | kNIMVChatServerSubscribeFallbackStrategy = "server_sub_fb_stategy" |
| int,服务器在下行弱网的时候切流策略NIMVChatServerSubscribeFallbackStrategy, 默认kNIMVChatSteamFallbackStrategyAudioOnly
|
|
|
static const char * | kNIMVChatUid = "uid" |
| string 帐号
|
|
static const char * | kNIMVChatStatus = "status" |
| int 状态
|
|
static const char * | kNIMVChatRecordAddr = "record_addr" |
| string 录制地址(服务器开启录制时有效)
|
|
static const char * | kNIMVChatRecordFile = "record_file" |
| string 服务器音频录制文件名(服务器开启录制时有效)
|
|
static const char * | kNIMVChatVideoRecordFile = "video_record_file" |
| string 服务器视频录制文件名(服务器开启录制时有效)
|
|
static const char * | kNIMVChatType = "type" |
| int 状态
|
|
static const char * | kNIMVChatTime = "time" |
| int64 时间 单位毫秒
|
|
static const char * | kNIMVChatAccept = "accept" |
| int 是否接受 >0表示接受
|
|
static const char * | kNIMVChatClient = "client" |
| int 客户端类型 NIMClientType见nim_client_def.h
|
|
static const char * | kNIMVChatMp4Start = "mp4_start" |
| key Mp4写入数据开始 kNIMVChatMp4File kNIMVChatTime(本地时间点)
|
|
static const char * | kNIMVChatMp4Close = "mp4_close" |
| key 结束Mp4录制,返回时长及原因 kNIMVChatStatus(NIMVChatMp4RecordCode) kNIMVChatTime(时长) kNIMVChatMp4File
|
|
static const char * | kNIMVChatMp4File = "mp4_file" |
| string mp4录制地址
|
|
static const char * | kNIMVChatAuRecordStart = "audio_record_start" |
| key 音频录制写入数据开始 kNIMVChatFile kNIMVChatTime
|
|
static const char * | kNIMVChatAuRecordClose = "audio_record_close" |
| key 结束音频录制,返回时长及原因 kNIMVChatStatus(NIMVChatAudioRecordCode) kNIMVChatTime kNIMVChatFile
|
|
static const char * | kNIMVChatFile = "file" |
| string 文件地址
|
|
static const char * | kNIMVChatCustomInfo = "custom_info" |
| string 自定义数据
|
|
static const char * | kNIMVChatVideo = "video" |
| key 视频
|
|
static const char * | kNIMVChatAudio = "audio" |
| key 音频
|
|
static const char * | kNIMVChatStaticInfo = "static_info" |
| key 音视频实时状态
|
|
static const char * | kNIMVChatFPS = "fps" |
| int 每秒帧率或者每秒发包数
|
|
static const char * | kNIMVChatKBPS = "KBps" |
| int 每秒流量,单位为“千字节”
|
|
static const char * | kNIMVChatLostRate = "lost_rate" |
| int 丢包率,单位是百分比
|
|
static const char * | kNIMVChatRtt = "rtt" |
| int rtt 网络延迟
|
|
static const char * | kNIMVChatAudioVolume = "audio_volume" |
| key 音频实时音量通知,包含发送的音量kNIMVChatSelf和接收音量kNIMVChatReceiver,kNIMVChatStatus的音量值是pcm的平均值最大为int16_max
|
|
static const char * | kNIMVChatSelf = "self" |
| key 本人信息
|
|
static const char * | kNIMVChatReceiver = "receiver" |
| key 接收信息
|
|
static const char * | kNIMVChatLiveState = "live_state" |
| key 直播状态 kNIMVChatStatus(NIMVChatLiveStateCode)
|
|
static const char * | kNIMVChatMp4AudioType = "mp4_audio" |
| int mp4录制时音频情况,0标识只录制当前成员,1标识录制通话全部混音(等同音频文件录制的声音)
|
|
static const char * | kNIMVChatMp4Recode = "mp4_recode" |
| bool mp4录制时重新编码开关
|
|
static const char * | kNIMVChatMp4Width = "mp4_width" |
| int 录制的mp4的宽度,默认为0,小于16无效,无效时取视频默认大小
|
|
static const char * | kNIMVChatMp4Height = "mp4_height" |
| int 录制的mp4的高度,默认为0,小于16无效,无效时取视频默认大小
|
|
static const char * | kNIMVChatTrafficStatRX = "trafficstat_rx" |
| uint64 下行流量(字节)
|
|
static const char * | kNIMVChatTrafficStatTX = "trafficstat_tx" |
| uint64 上行流量(字节)
|
|
static const char * | kNIMVChatVideoSimulcastResList = "video_simulcast_res_list" |
| json array 订阅发布视频分辨率类型列表
|
|
|
static const char * | kNIMVChatRoomConfig = "room_config" |
| key 房间配置
|
|
static const char * | kNIMVChatRTMPTasks = "rtmpTasks" |
| array 推流参数配置,可以配置多个
|
|
static const char * | kNIMVChatRTMPTaskID = "taskId" |
| 必填 string 推流任务ID
|
|
static const char * | kNIMVChatRTMPURL = "streamUrl" |
| 必填 string 推流地址
|
|
static const char * | kNIMVChatRTMPLayoutMode = "layoutMode" |
| 必填 int 连麦方式
|
|
static const char * | kNIMVChatRTMPLayoutPara = "layoutPara" |
| 选填 string 自定义布局参数,仅对kNIMVChatSplitCustomLayout,kNIMVChatSplitAudioLayout模式有效
|
|
static const char * | kNIMVChatRTMPRecord = "record" |
| 选填 bool 推流参数配置
|
|
static const char * | kNIMVChatRTMPMainScreenAccid = "accid" |
| 选填 string 指定主屏显示的帐号
|
|
|
static const char * | kNIMVChatAccount = "account" |
| 用户账号 string
|
|
void(* nim_vchat_cb_func)(NIMVideoChatSessionType type, int64_t channel_id, int code, const char *json_extension, const void *user_data) |
NIM VChat 音视频通话中状态返回回调接口
根据NIMVideoChatSessionType的具体参数说明如下:
kNIMVideoChatSessionTypeStartRes, // 创建通话结果 code=200成功,json 返回kNIMVChatSessionId
kNIMVideoChatSessionTypeInviteNotify, // 通话邀请 code无效,json 返回kNIMVChatUid发起者,kNIMVChatType对应NIMVideoChatMode, kNIMVChatTime, kNIMVChatCustomInfo
kNIMVideoChatSessionTypeCalleeAckRes, // 确认通话,接受拒绝结果 json 无效 code: 200:成功 9103 : 已经在其他端接听 / 拒绝过这通电话
kNIMVideoChatSessionTypeCalleeAckNotify, // 确认通话,接受拒绝通知 code=无效,json 返回kNIMVChatUid对方,kNIMVChatType对应NIMVideoChatMode, kNIMVChatAccept
kNIMVideoChatSessionTypeControlRes, //NIMVChatControlType 结果 code=200成功,json 返回kNIMVChatType对应NIMVChatControlType
kNIMVideoChatSessionTypeControlNotify, //NIMVChatControlType 通知 code=无效,json 返回kNIMVChatUid对方,kNIMVChatType对应NIMVChatControlType
kNIMVideoChatSessionTypeConnect, // 通话中链接状态通知 code对应NIMVChatConnectErrorCode, 非200均失败并底层结束
// code=1001,代表通话注销结果,带通话本地时长(kNIMVChatTime)及数据量(kNIMVChatTrafficStatRX kNIMVChatTrafficStatTX)
kNIMVideoChatSessionTypePeopleStatus, // 通话中成员状态 code对应NIMVideoChatSessionStatus, json返回kNIMVChatUid,如果是离开带kNIMVChatStatus对应NIMVideoChatUserLeftType
kNIMVideoChatSessionTypeNetStatus, // 通话中网络状态 code对应NIMVideoChatSessionNetStat, json返回kNIMVChatUid
kNIMVideoChatSessionTypeHangupRes, // 通话主动结果 code=200成功,json无效
kNIMVideoChatSessionTypeHangupNotify, // 通话被挂断通知 code无效,json无效
kNIMVideoChatSessionTypeSyncAckNotify, // 其他端接听挂断后的同步通知 json 返回 kNIMVChatTime,kNIMVChatType对应NIMVideoChatMode,kNIMVChatAccept,kNIMVChatClient
kNIMVideoChatSessionTypeMp4Notify //windows(pc)有效.通知MP4录制状态,包括开始录制和结束录制, code无效,json(其他成员的录制通知带uid,自己的不带) 返回如下
// MP4开始 {"mp4_start":{ "mp4_file": "d:\\test.mp4", "time": 14496477000000, "uid":"id123" }}
// MP4结束 {"mp4_close":{ "mp4_file": "d:\\test.mp4", "time": 120000, "status": 0, "uid":"id123" }}
kNIMVideoChatSessionTypeAuRecordNotify //windows(pc)有效.通知音频录制状态,包括开始录制和结束录制 code无效,json 返回如下
// 录制开始 {"audio_record_start":{ "file": "d:\\test.aac", "time": 14496477000000 }}
// 录制结束 {"audio_record_close":{ "file": "d:\\test.aac", "time": 120000, "status": 0 }}
kNIMVideoChatSessionTypeInfoNotify // 实时状态 {"static_info":{"rtt":20, "video": {"fps":20, "KBps":200, "lost_rate":5, "width":1280,"height":720}, "audio": {"fps":17, "KBps":3", lost_rate":3 }}}
kNIMVideoChatSessionTypeVolumeNotify // 音量状态 {"audio_volume":{ "self": {"status":600}, "receiver": [{"uid":"id123","status":1000},{"uid":"id456","status":222}] }}
kNIMVideoChatSessionTypeLiveState //windows(pc)有效.直播状态 {"live_state":{"status":505 }}
kNIMVideoChatSessionTypePubSubNotify // 订阅及发布相关的通知,code返回(NIMVChatPubSubErrorCode),json包含kNIMVChatType(NIMVChatPubSubNotifyType) 远端视频额外带有kNIMVChatUid 本端订阅发布操作、远端发布带有kNIMVChatVideoSimulcastResList
- Parameters
-
[out] | type | NIMVideoChatSessionType |
[out] | channel_id | 通话的通道id |
[out] | code | 结果类型或错误类型 |
[out] | json_extension | Json string 扩展 |
[out] | user_data | APP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理! |
- Returns
- void 无返回值