事件类型 | 字段取值说明 |
拉流转推 | event_type = 314 |
参数 | 类型 | 含义 |
appid | int | 用户 APPID |
callback_event | string | 回调事件类型 |
source_urls | string | 拉流源 URL |
to_url | string | 推流目标 URL |
stream_id | string | 直播流名称 |
task_id | string | 任务 ID |
string | 不同事件,详细回调信息 | |
event_time | string | 事件发生时间戳,示例:"1712893433" |
参数 | 类型 | 含义 |
task_start_time | int | 任务开始时间,毫秒时间戳 |
url | string | 当前正拉取的源 URL |
index | string | 点播文件所在列表索引 |
duration | int | 点播文件时长,秒 |
task_exit_time | int | 任务退出时间,毫秒时间戳 |
code | string | 任务退出错误码 |
message | string | 任务退出错误信息 |
{"appid": 4,"callback_event": "TaskStart","event_type": 314,"interface": "general_callback","msg": "{\\"task_start_time\\":0}","product_name": "pullpush","source_urls": "[\\"http://yourURL.cn/live/normal_230753472*****21162358-upload-45eb/playlist.m3u8\\"]\\n","stream_id": "testvod","task_id": "118148","to_url": "rtmp://xxx.livepush.myqcloud.com/live/testvod"}
{"appid": 4,"callback_event": "VodSourceFileStart","callback_url": "http://you.callback.url","event_type": 314,"interface": "general_callback","msg": "{\\"url\\":\\"http://remit-tx-ugcpub.douyucdn2.cn/live/normal_466247620*****3100448-upload-216b/playlist.m3u8\\",\\"index\\":0,\\"duration\\":14920}","product_name": "pullpush","source_urls": "[\\"http://yourURL.cn/live/normal_466247620*****3100448-upload-216b/playlist.m3u8\\"]\\n","stream_id": "testvod","task_id": "118145","to_url": "rtmp://xxx.livepush.myqcloud.com/live/testvod"}
{"appid": 4,"callback_event": "VodSourceFileFinish","callback_url": "http://you.callback.url","event_type": 314,"interface": "general_callback","msg": "{\\"url\\":\\"http://yourURL.cn/live/normal_466247620*****3100448-upload-216b/playlist.m3u8\\",\\"index\\":0,\\"duration\\":14920}","product_name": "pullpush","source_urls": "[\\"http://yourURL.cn/live/normal_466247620*****3100448-upload-216b/playlist.m3u8\\"]\\n","stream_id": "testvod","task_id": "118145","to_url": "rtmp://xxx.livepush.myqcloud.com/live/testvod"}
{"appid": 4,"callback_event": "TaskExit","event_type": 314,"interface": "general_callback","msg": "{\\"message\\":\\"write packet error.\\",\\"code\\":-22,\\"task_exit_time\\":0}","product_name": "pullpush","source_urls": "[\\"http://yourURL.cn/live/normal_230753472*****21162358-upload-4\\"]\\n"}
TaskStart-任务开始回调
> VodSourceFileStart-点播文件开始时回调
> VodSourceFileFinish-点播文件结束回调
。TaskStart-任务开始回调
和 VodSourceFileStart-点播文件开始时回调
两个回调中间会有2s内的间隔。
本页内容是否解决了您的问题?