|
typedef void(* | nim_rts_start_cb_func) (int code, const char *session_id, int channel_type, const char *uid, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_start_notify_cb_func) (const char *session_id, int channel_type, const char *uid, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_create_cb_func) (int code, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_join_cb_func) (int code, const char *session_id, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_ack_res_cb_func) (int code, const char *session_id, int channel_type, bool accept, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_ack_notify_cb_func) (const char *session_id, int channel_type, bool accept, const char *uid, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_sync_ack_notify_cb_func) (const char *session_id, int channel_type, bool accept, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_connect_notify_cb_func) (const char *session_id, int channel_type, int code, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_member_change_cb_func) (const char *session_id, int channel_type, int type, const char *uid, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_control_res_cb_func) (int code, const char *session_id, const char *info, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_control_notify_cb_func) (const char *session_id, const char *info, const char *uid, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_hangup_res_cb_func) (int code, const char *session_id, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_hangup_notify_cb_func) (const char *session_id, const char *uid, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_rec_data_cb_func) (const char *session_id, int channel_type, const char *uid, const char *data, unsigned int size, const char *json_extension, const void *user_data) |
|
typedef void(* | nim_rts_opt_cb_func) (int code, const char *session_id, int channel_type, const char *json_extension, const void *user_data) |
|
|
|
for example: 参数可选,例子中是不填时的默认值 {"mode": 1, "custom_video":0, "custom_audio":0, "data_record":0, "session_id":"b76e2b7ae065224499e4d7138d643961" }
|
static const char * | kNIMRtsSessionId = "session_id" |
| string 发起会话的标识id,将在创建点对点和多人通话时,如果填写了此参数优先使用用户填写的session_id
|
|
static const char * | kNIMRtsVChatMode = "mode" |
| int NIMRtsVideoChatMode,非视频模式时不会发送视频数据
|
|
static const char * | kNIMRtsVChatCustomVideo = "custom_video" |
| int 是否用自主的视频数据 >0表示是
|
|
static const char * | kNIMRtsVChatCustomAudio = "custom_audio" |
| int 是否用自主的音频数据 >0表示是
|
|
static const char * | kNIMRtsDataRecord = "data_record" |
| int 是否需要服务器录制白板数据 >0表示是
|
|
static const char * | kNIMRtsAudioRecord = "audio_record" |
| int 是否需要服务器录制音频数据 >0表示是
|
|
static const char * | kNIMRtsApnsText = "apns" |
| string 推送用的文本 nim_rts_ack无效
|
|
static const char * | kNIMRtsCreateCustomInfo = "custom_info" |
| string 自定义数据,透传给被邀请方 nim_rts_ack无效
|
|
static const char * | kNIMRtsPushEnable = "push_enable" |
| int 是否需要推送 >0表示是 默认是
|
|
static const char * | kNIMRtsNeedBadge = "need_badge" |
| int 是否需要角标计数 >0表示是 默认是
|
|
static const char * | kNIMRtsNeedFromNick = "need_nick" |
| int 是否需要推送昵称 >0表示是 默认是
|
|
static const char * | kNIMRtsApnsPayload = "payload" |
| string JSON格式,推送payload
|
|
static const char * | kNIMRtsSound = "sound" |
| string 推送声音
|
|
static const char * | kNIMRtsKeepCalling = "keepcalling" |
| int, 是否强制持续呼叫(对方离线也会呼叫),1表示是,0表示否。默认是
|
|
static const char * | kNIMRtsWebRtc = "webrtc" |
| int, 是否支持webrtc互通(针对点对点中的音频通话)
|
|
|
for example: {"channel_id": 1231 }
|
static const char * | kNIMRtsChannelId = "channel_id" |
| int64 通话的通道id
|
|
|
for example: {"channel_id": 1231, "custom_info":"hello world" }
|
static const char * | kNIMRtsCustomInfo = "custom_info" |
| string 自定义数据
|
|
|
for example: {"uid": "abc" }
|
static const char * | kNIMRtsUid = "uid" |
| string 用户账号uid
|
|
|
for example: {"record_addr": "", "record_file":"" }
|
static const char * | kNIMRtsRecordAddr = "record_addr" |
| string 录制地址(服务器开启录制时有效)
|
|
static const char * | kNIMRtsRecordFile = "record_file" |
| string 录制的文件名(服务器开启录制时有效,音视频类型时为音频文件名)
|
|
static const char * | kNIMRtsVideoRecordFile = "video_record_file" |
| string 录制的视频文件名(服务器开启录制时有效)
|
|
|
for example: {"client_type": 1 }
|
static const char * | kNIMRtsClientType = "client_type" |
| int 客户端类型NIMClientType,见nim_client_def.h
|
|
|
for example: {"client_type": 1 }
|
static const char * | kNIMRtsLeaveType = "leave_type" |
| int 客户端类型NIMRtsMemberLeftType,见nim_client_def.h
|
|
实时会话(数据通道) 接口相关的常量函数等定义头文件
- Copyright
- (c) 2015-2017, NetEase Inc. All rights reserved
- Author
- gq
- Date
- 2015/6/30