# 倒放任务发送及回调示例

# 1. 创建任务请求JSON样例

{
	"data": {
		"flag": 8,
		"callbackHost": "https://demo.com",
		"alphaUrl": "https://demo.com/alpha.mp4",
		"url": "https://demo.com/demo.mp4",
		"resourceType": 1,
	},
	"type": 0,
	"uuid": "46e965a35f484557a5f9afb97d2006ee"
}
字段 描述 类型 是否必填
type 任务的类型,任务类型为 0 int
uuid 任务的id号,唯一标识 String
data 任务的详细信息 object
callbackHost 回调的host String
flag 固定值 8 int
url 资源的url地址 String
alphaUrl 和url对应的alpha地址 String

# 2. 回调任务请求JSON样例

{
	"data": {
    "code": 0,
    "message": "success",
		"singleSliceUrl": "https://demo.com/editor/2022/07/27/video-compiled/demo/demo.mp4",
		"rightChannelFileUrl": "https://demo.com/editor/2022/07/27/video/demo/demo-0-rightchannel.data",
		"audioDataFileUrl": "https://demo.com/editor/2022/07/27/video/demo/demo-0-audio.data",
		"duration": 23480000,
		"coverUrl": "https://demo.com/editor/2022/07/27/video/demo/demo_cover.jpg",
		"leftChannelFileUrl": "https://demo.com/editor/2022/07/27/video/demo/demo-0-leftchannel.data",
		"originalFileSize": 12221630,
		"width": 1920,
		"thumbnails": [],
		"thumbnailInfo": {
			"extension": "jpg",
			"urlPrefix": "https://demo.com/editor/2022/07/27/video-thumbnail/demo/demo",
			"interval": 1000
		},
		"m3u8Url": "https://demo.com/editor/2022/07/27/video/demo/demo.m3u8",
		"height": 1080,
    "alphaUrl":"https://demo.com/editor/2022/07/27/video-compiled/demo/demo-alpha.mp4",
    "alphaM3u8Url":"https://demo.com/editor/2022/07/27/video/demo/demo-alpha.m3u8"
	},
	"type": 0,
	"uuid": "46e965a35f484557a5f9afb97d2006ee"
}
字段 描述 类型
type 任务的类型,转码任务类型为 0 int
uuid 任务的id号,唯一标识 String
data 任务转码后的详细信息 Object
code 任务状态码 0成功 其他失败 int
message 任务的结果信息 String
rightChannelFileUrl 右声道的波形图文件的url String
leftChannelFileUrl 左声道的波形图文件的url String
audioDataFileUrl 音频文件的url String
singleSliceUrl 倒放后文件的url String
coverUrl 封面文件的url String
thumbnails 缩率图的对象数组 Object[ ]
time 缩率图对应的时间线,单位微秒 int
url 缩率图文件的url String
needTranscodeAlphaChannel 是否包含alpha通道 boolean
width 视频的宽 long
height 视频的高 long
duration 视频时长,单位微秒 long
m3u8Url m3u8文件的url String
alphaUrl 倒放后的alpha文件url String
alphaM3u8Url 倒放后的alpha的m3u8文件的url String