TUILiveKit 产品动态
云直播推拉流 SDK 产品动态
https://www.example.com。
示例:https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
参数 | 说明 |
https | 请求协议为 HTTPS,请求方式为 POST |
www.example.com | 回调 URL |
SdkAppid | 创建应用时在 Chat 控制台分配的 SDKAppID |
CallbackCommand | 固定为 Live.CallbackAfterDestroyRoom |
contenttype | 固定值为 JSON |
ClientIP | 客户端 IP,格式如:127.0.0.1 |
OptPlatform |
{"CallbackCommand":"Live.CallbackAfterDestroyRoom","Operator_Account":"admin","RoomId":"tandy-test-rest","EventType":"DestroyByUser", //"DestroyByUser", "DestroyBySystem" 分为用户主动解散和房间无人后系统自动解散两种"EventTime":1703589922780,"RoomInfo": {"RoomName": "live name","RoomType": "Live","Owner_Account": 144115216631667826,"IsSeatEnabled": true,"TakeSeatMode": "FreeToTake","MaxMemberCount": 400,"MaxSeatCount": 4,"Category": [1, 2, 3],"CustomInfo": "","IsMessageDisabled": false,"CoverURL": "cover url","ActivityStatus": 0,"IsPublicVisible": false,"ViewCount": 0,"BackgroundURL": "background url","IsUnlimitedRoomEnabled": true},"Statistic": {"TotalViewers": 0,"TotalGiftsSent": 0,"TotalGiftCoins": 0,"TotalUniqueGiftSenders": 0,"TotalLikesReceived": 0}}
字段 | 类型 | 说明 |
CallbackCommand | String | 回调命令 |
Operator_Account | String | 发起销毁房间请求的操作者 UserID |
RoomId | String | 房间 ID |
EventType | String | 解散类型: 分为主动解散(DestroyByUser)和系统自动解散(DestroyBySystem)两种 |
EventTime | Integer | 事件触发的毫秒级别时间戳 |
RoomName | String | 房间名称 |
RoomType | String | 房间类型:Meeting(会议房间) |
Owner_Account | String | 房主 ID |
IsSeatEnabled | Bool | 是否支持麦位 |
TakeSeatMode | String | 麦位模式:None(关闭),FreeToTake(自由上麦),ApplyToTake(申请上麦) |
MaxMemberCount | Integer | 最大房间成员数量 |
MaxSeatCount | Integer | 最大麦位数 |
Category | Array | 房间类型标识,整数数组类型 |
CustomInfo | String | 自定义字段 |
IsMessageDisabled | Bool | 禁止所有成员发文本消息 |
CoverURL | String | 房间封面 url |
ActivityStatus | Integer | 直播间活跃状态:用户自定义标记 |
IsPublicVisible | Bool | 房间是否公开 |
ViewCount | Integer | 用户进房总次数 |
BackgroundURL | String | 房间背景图url |
IsUnlimitedRoomEnabled | Bool | |
TotalViewers | Integer | 总进房人次,同一用户反复进房 N 次算 N 次 |
TotalGiftsSent | Integer | 总礼物数 |
TotalGiftCoins | Integer | 总礼物价值 |
TotalUniqueGiftSenders | Integer | 总送礼人数 |
TotalLikesReceived | Integer | 总点赞次数 |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // 忽略回调结果}
字段 | 类型 | 属性 | 说明 |
ActionStatus | String | 必填 | 请求处理的结果,OK 表示处理成功,FAIL 表示失败 |
ErrorCode | Integer | 必填 | 错误码,此处填0表示忽略应答结果 |
ErrorInfo | String | 必填 | 错误信息 |
文档反馈