Media Upload & Audio Extraction Message Body
Sample Upload Success Message
{ "event_type": "createComplete", "create_info": { "status": "SUCCEED", "title": "Fake video", "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 } } }
Sample Extraction Success Message
{ "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 } } }
Message Body Description
Parameter |
Description |
---|---|
asset_id |
ID of the new media |
status |
Event status
|
title |
Name of the new media. This parameter is used only when status is SUCCEED. |
url |
URL for accessing the new media. This parameter is used only when status is SUCCEED. |
meta_data |
Metadata of the new media. This parameter is used only when status is SUCCEED. |
error_code |
Error code. This parameter is used only when status is FAILED. |
error_msg |
Error description. This parameter is used only when status is FAILED. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot