获取封装任务详情-GetFormatTaskDetail

获取封装任务详情

Request Parameters

Parameter nameTypeDescriptionRequired
TaskIdstring查询的截图任务IDYes
ProjectIdstring项目编号,未填写则为默认项目No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
SrcUrlstring原始视频url地址No
DestVideoNamestring输出视频文件名No
DestVideoFormatstring输出视频封装格式No
Durationint视频时长No
DestBucketstring存储图片的ufile的bucket名称No
CreateTimeint任务创建时间,单位:Unix时间戳No
FinishTimeint任务结束时间,单位:Unix时间戳。只有任务状态为处理完成时值才有意义,默认为0。No
Statusstring任务状态:waiting、processing、finished、failed,分别表示排队中,处理中,处理完成,处理失败。No

Request Example

http(s)://api.ucloud.cn/?Action=GetFormatTaskDetail&TaskId=1

Response Example

{
    "FinishTime": 1496298900,
    "Status": "finished",
    "DestVideoName ": "myvideo.m3u8",
    "DestBucket": "video.cn-bj.ufileos.com",
    "RetCode": 0,
    "DestVideoFortmat": "m3u8",
    "SrcUrl": "http://video.ucloud.cn/myvideo.mp4",
    "TaskId": "1",
    "Action": "GetFormatTaskDetailResponse",
    "CreateTime": 1496298697
}