Skip to content

直播流状态变更消息

拥有此API的权限集并订阅此消息推送
直播管理-查询

接口描述

  • 直播流的状态发生变化后进行消息推送,例如开始推流,停止推流的行为

推送参数

参数名是否必传类型说明
typestring推送类型: alive_stream_state_change
app_idString店铺id
message_idString消息ID
retry_timesint重试次数
xe_dataObject业务数据

xe_data 参数结构

参数名必选类型说明
app_idstring店铺id
alive_idstring直播id
event_typeint流状态,0结束推流、1开始推流
event_timeint事件触发时间

推送解密后示

    <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>