Skip to content

直播流状态变更消息 ​

拥有此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>