更新时间:2022-10-21 GMT+08:00
创建媒资&音频提取消息体
创建媒资消息体参考
{ "event_type": "createComplete", "create_info": { "status": "SUCCEED", "title": "假视频", "url": "https://1111116.cdn-vod.huaweicloud.com/asset/81b89afdb5e6c94c68e5028b2747b1f0/3729f0177453c9525b5196d6400f1bb6.flv", "asset_id": "81b89afdb5e6c94c68e5028b2747b1f0", "user_name":"tmp", "meta_data": { "play_type": 0, "pack_type": "FLV", "codec": "UNKNOWN", "duration": 0, "video_size": 0, "width": 0, "hight": 0, "bit_rate": 0, "frame_rate": 0 } } }
音频提取消息体参考
{ "event_type": "audioExtractComplete", "audio_extract_info": { "status": "SUCCEED", "title": "1080p16m", "url": "https://1111116.cdn-vod.huaweicloud.com/asset/d98b70ff435cf417a0a450052be80109/e8f3fd5c82bdb979188ab1a2cb66c08b.mp3", "asset_id": "d98b70ff435cf417a0a450052be80109", "meta_data": { "play_type": 0, "pack_type": "MP3", "codec": "UNKNOWN", "duration": 60, "video_size": 0, "width": 0, "hight": 0, "bit_rate": 128, "frame_rate": 0 } } }
消息体说明
参数 |
说明 |
---|---|
asset_id |
创建的新媒资ID |
status |
事件状态。
|
title |
新媒资名称,状态为成功时才有此值。 |
url |
新媒资的访问url,状态为成功时才有此值。 |
meta_data |
新媒资元数据,状态为成功时才有此值。 |
error_code |
错误码。状态为失败时才有此值。 |
error_msg |
错误描述。状态为失败时才有此值。 |
父主题: 消息通知json格式说明