全部产品
存储与CDN 数据库 安全 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 阿里云办公 培训与认证 物联网

GetVideoCover

更新时间:2017-09-20 17:59:53

描述

获取视频封面地址,该地址的有效期为1小时。

使用该接口需要开通媒体转码服务。

请求参数

参数名 类型 是否必须 说明
Action String GetVideoCover
PhotoId Long 视频文件的唯一标识
StoreName String PhotoStore的名称
ZoomType String 缩放格式,请参考OSS的缩放格式
LibraryId String 照片库标识。采用AK认证时必选,采用STS认证时可选。了解不同认证方式的区别。

请求示例

  1. https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=GetVideoCover
  2. &PhotoId=822596591369068544
  3. &StoreName=cloudphoto-demo
  4. &ZoomType=400w_400h
  5. &LibraryId=alice-001
  6. &<公共请求参数>

返回参数

参数名 类型 说明
RequestId String 唯一标识本次请求的ID
Code String 响应状态码,Success表示成功的响应
Message String 响应状态详细描述
Action String GetVideoCover
VideoCoverUrl String 视频封面的访问地址

返回示例

JSON格式

  1. {
  2. "Action":"GetVideoCover",
  3. "Message":"success",
  4. "RequestId":"ABAC6F03-DC0F-4893-B823-880FE76AB70A",
  5. "VideoCoverUrl":"http://cloudphoto-demo.img-cn-shanghai.aliyuncs.com/stores/cloudphoto-demo/video/i9lQGYVZS_6fe8DZ_qiUQQAAAApwZDIE.jpg%40400w_400h_2o?Expires=1500022464&OSSAccessKeyId=STS.MgUkRSvRRmQ9ZZxx7zQKKRXZh&Signature=7%2B1njrgwgDigHM8PtO%2BP1E5%2B%2Bjs%3D&security-token=CAISkAJ1q6Ft5B2yfSjIrKTgIOjnm41z2pPSWHzJnDcvXcRnvZ3xijz2IH9PdXRuCe4esv00mmlW7PYelr94T5hYSVTEatd3q5pW9Q66bpDfuse4tRise10ZWjr9MQXy%2BeOPScebJYqvV5XAQlTAkTAJstmeXD6%2BXlujHISUgJp8FLo%2BVRW5ajw0b7U%2FZHEVyqkgOGDWKOymPzPzn2PUFzAIgAdnjn5l4qnNqa%2F1qDim1QekkL5F%2F9%2Brf8b9M5YwYa0SCYnlgLZEEYPayzNV5hRw86N7sbdJ4z%2BvvKvGXAIAvkvWbbKIq4YxdVEjNvQgaKdArenhk%2FZ8vfHfj4Tw1xFBMO9cTiDDXoekzdsTol0B%2F26DHxqAASS7rqIARZ%2B1PUJJVKZ2N64gpPIwv2i%2FsEDqz607uovwnqy0TiyZJ2gQeByteRCeFO7gxGLv149J%2FwpHLwnm34oiBvfg3sCSmtlmWZz4MsyH3FSM7KE33TamwKqUrqozwhq2ZMFMCytR7FjkC0k88Y%2BKZfrKwZu9U7oz9vl%2Bc2js",
  6. "Code":"Success"
  7. }

XML格式

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <GetVideoCoverResponse>
  3. <Action>GetVideoCover</Action>
  4. <Message>success</Message>
  5. <RequestId>14A83AC9-3488-4659-A7F4-588C08B51BD6</RequestId>
  6. <VideoCoverUrl><![CDATA[http://cloudphoto-demo.img-cn-shanghai.aliyuncs.com/stores/cloudphoto-demo/video/i9lQGYVZS_6fe8DZ_qiUQQAAAApwZDIE.jpg%40400w_400h_2o?Expires=1500022464&OSSAccessKeyId=STS.MgUkRSvRRmQ9ZZxx7zQKKRXZh&Signature=7%2B1njrgwgDigHM8PtO%2BP1E5%2B%2Bjs%3D&security-token=CAISkAJ1q6Ft5B2yfSjIrKTgIOjnm41z2pPSWHzJnDcvXcRnvZ3xijz2IH9PdXRuCe4esv00mmlW7PYelr94T5hYSVTEatd3q5pW9Q66bpDfuse4tRise10ZWjr9MQXy%2BeOPScebJYqvV5XAQlTAkTAJstmeXD6%2BXlujHISUgJp8FLo%2BVRW5ajw0b7U%2FZHEVyqkgOGDWKOymPzPzn2PUFzAIgAdnjn5l4qnNqa%2F1qDim1QekkL5F%2F9%2Brf8b9M5YwYa0SCYnlgLZEEYPayzNV5hRw86N7sbdJ4z%2BvvKvGXAIAvkvWbbKIq4YxdVEjNvQgaKdArenhk%2FZ8vfHfj4Tw1xFBMO9cTiDDXoekzdsTol0B%2F26DHxqAASS7rqIARZ%2B1PUJJVKZ2N64gpPIwv2i%2FsEDqz607uovwnqy0TiyZJ2gQeByteRCeFO7gxGLv149J%2FwpHLwnm34oiBvfg3sCSmtlmWZz4MsyH3FSM7KE33TamwKqUrqozwhq2ZMFMCytR7FjkC0k88Y%2BKZfrKwZu9U7oz9vl%2Bc2js]]></VideoCoverUrl>
  7. <Code>Success</Code>
  8. </GetVideoCoverResponse>
本文导读目录