文档

SubmitLiveSnapshotJob - 提交实时截图任务

更新时间:

调用SubmitLiveSnapshotJob提交实时截图任务。如果在推流中提交,则会自动异步启动任务,否则为未启动状态。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
JobNamestring

任务名称。

  • 最大长度为 128。
截图任务1
StreamInputobject

流输入信息。

Urlstring

流输入地址。

  • 最大长度为 255。
rtmp://www.aliyun.com/stream
Typestring

流输入类型。目前只支持 rtmp。

rtmp
SnapshotOutputobject

截图输出信息。

StorageTypestring

截图存储类型。目前只支持 oss。

oss
Endpointstring

截图输出终端。

oss-cn-shanghai.aliyuncs.com
Bucketstring

截图输出终端的 Bucket。

testbucket
TemplateIdstring

模板 ID。

****a046-263c-3560-978a-fb287782****
CallbackUrlstring

截图回调地址。

  • 最大长度为 255。
  • 支持 http/https
http://www.aliyun.com/snapshot/callback

返回参数

名称类型描述示例值
object

响应数据。

RequestIdstring

请求 ID。

******11-DB8D-4A9A-875B-275798******
JobIdstring

任务 ID。

****a046-263c-3560-978a-fb287666****

示例

正常返回示例

JSON格式

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "JobId": "****a046-263c-3560-978a-fb287666****"
}

错误码

HTTP status code错误码错误信息描述
400MissingParameter%s-
400InvalidParameter%s-
403UserDisableUser is disable. -
403ForbiddenUser not authorized to operate on the specified resource.无权限执行该操作。(一般是由于账号未获得相应权限,参考 账号授权策略。)
403OperationDeniedYour account has not enabled the ICE service.账号未开通智能媒体生产服务。
404TemplateNotFoundNo such template. -
500InternalErrorThe request processing has failed due to some unknown error.后台发生未知错误,请稍后重试或联系客服解决。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈