Appearance
直播流状态变更消息
| 拥有此API的权限集并订阅此消息推送 |
|---|
| 直播管理-查询 |
接口描述
- 直播流的状态发生变化后进行消息推送,例如开始推流,停止推流的行为
推送参数
| 参数名 | 是否必传 | 类型 | 说明 |
|---|---|---|---|
| type | 是 | string | 推送类型: alive_stream_state_change |
| app_id | 是 | String | 店铺id |
| message_id | 是 | String | 消息ID |
| retry_times | 是 | int | 重试次数 |
| xe_data | 是 | Object | 业务数据 |
xe_data 参数结构
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| app_id | 是 | string | 店铺id |
| alive_id | 是 | string | 直播id |
| event_type | 是 | int | 流状态,0结束推流、1开始推流 |
| event_time | 是 | int | 事件触发时间 |
推送解密后示
<type>live_push_state_change</type>
<app_id>appAKLWLitnxxxx</app_id>
<message_id>20230615_1669013687304xxxxxx</message_id>
<retry_times>0</retry_times>
<xe_data>
<action>直播推流状态变更通知</action>
<app_id>xxx</app_id>
<data>
<app_id>appAKLWLxxxxxx</app_id>
<alive_id>l_ABCDxxxxxxxxxxxxxxxxxx</alive_id>
<event_type>1</event_type>
<event_time>xxxxxx<event_time>
</data>
</xe_data>