API 参考
圈组

音视频1.0相关回调

更新时间: 2024/07/17 17:57:35

发起音视频通话回调

HTTP示例:

httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e**4d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache

{"callType":2,"eventType":20,"forceKeepCalling":true,"fromAccount":"rss02","fromClientIp":"240e:e8:f012:6fc1:ec15:1366:3ccb:2f18","fromClientPort":"50867","fromClientType":"IOS","fromDeviceId":"727EDBAF-AF84-42AE-9E09-EE586CCBCF2D","notifyAttach":"音视频请求扩展信息","timestamp":"1573459861008","toAccountList":["rss01"]}

cURL示例:

curlcurl -X POST \
  http://yunxinservice.com.cn/receiveMsg.action \
  -H 'appkey: 1589838**4d219453d6542' \
  -H 'cache-control: no-cache' \
  -H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
  -H 'content-type: application/json' \
  -H 'curtime: 1541583920979' \
  -H 'md5: e89c284a5ad9a76b3176e23108920f81' \
  -d '{"callType":2,"eventType":20,"forceKeepCalling":true,"fromAccount":"rss02","fromClientIp":"240e:e8:f012:6fc1:ec15:1366:3ccb:2f18","fromClientPort":"50867","fromClientType":"IOS","fromDeviceId":"727EDBAF-AF84-42AE-9E09-EE586CCBCF2D","notifyAttach":"音视频请求扩展信息","timestamp":"1573459861008","toAccountList":["rss01"]}'

消息体中的JSON字段说明:

回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。

名称类型必须说明
eventType Integer值为20,表示是音视频通话发起回调
fromAccount String操作者账号
fromDeviceId String操作者设备id
fromClientType String操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST
fromClientIp String操作者的客户端IP地址
fromClientPort String操作者的客户端端口号
callType Integer音视频通话类型,1表示音频,2表示视频
forceKeepCalling Boolean是否强制持续呼叫
notifyAttach String自定义字段
toAccountList JSON ARRAY被呼叫accid列表
timestamp String操作时间,字符串类型

创建多人音视频房间回调

HTTP示例:

httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache

{"channelName":"ss","eventType":21,"fromAccount":"lly1","fromClientIp":"115.236.119.138","fromClientPort":"46612","fromClientType":"WEB","fromDeviceId":"862e8f7463b0721f4a49d77bb14cc124","roomConfig":"","selfConfig":"","timestamp":"1573456122632"}

cURL示例:

curlcurl -X POST \
  http://yunxinservice.com.cn/receiveMsg.action \
  -H 'appkey: 15898**219453d6542' \
  -H 'cache-control: no-cache' \
  -H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
  -H 'content-type: application/json' \
  -H 'curtime: 1541583920979' \
  -H 'md5: e89c284a5ad9a76b3176e23108920f81' \
  -d '{"channelName":"ss","eventType":21,"fromAccount":"lly1","fromClientIp":"115.236.119.138","fromClientPort":"46612","fromClientType":"WEB","fromDeviceId":"862e8f7463b0721f4a49d77bb14cc124","roomConfig":"","selfConfig":"","timestamp":"1573456122632"}'

消息体中的JSON字段说明:

回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。

名称类型必须说明
eventType Integer值为21,表示是创建多人音视频房间回调
fromAccount String操作者账号
fromDeviceId String操作者设备id
fromClientType String操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST
fromClientIp String操作者的客户端IP地址
fromClientPort String操作者的客户端端口号
roomConfig String房间属性字段
selfConfig String自定义字段
timestamp String操作时间,字符串类型
此文档是否对你有帮助?
有帮助
去反馈
  • 发起音视频通话回调
  • HTTP示例:
  • cURL示例:
  • 消息体中的JSON字段说明:
  • 创建多人音视频房间回调
  • HTTP示例:
  • cURL示例:
  • 消息体中的JSON字段说明: