Help Center> Video On Demand> User Guide> Appendix> JSON Message Body> Media Upload & Audio Extraction Message Body
Updated on 2022-10-24 GMT+08:00

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

Table 1 AssetInfo structure

Parameter

Description

asset_id

ID of the new media

status

Event status

  • SUCCEED
  • FAILED

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.