ci:GenerateSnapshot permission is required. For details, see Cloud Infinite actions.GET /<ObjectKey>?ci-process=snapshot&time=1&format=jpg HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>
https://<BucketName-APPID>.cos.<Region>.myqcloud.com/for-test.mp4?ci-process=snapshot&time=1&format=jpg&<Auth String>
Parameter Name | Description | Type | Required or Not |
ci-process | Operation type, fixed usage snapshot | String | Yes |
time | Screenshot time point, in seconds | float | Yes |
width | Width of the screenshot. Defaults to 0. | Int | No |
height | Height of the screenshot. Defaults to 0. | Int | No |
format | Format of the screenshot. Supports jpg and png. Default is jpg. | String | No |
rotate | Rotation method of the image auto: Perform automatic rotation based on video rotation information off: No rotation default value is auto | String | No |
mode | Frame capturing method keyframe: Capture the latest key frame before the specified time point exactframe: Capture the frame at the specified time point default value is exactframe | String | No |
GET /for-test.mp4?ci-process=snapshot&time=1.5 HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Fri, 10 Mar 2016 09:45:46 GMTAuthorization: q-sign-algorithm=sha1&q-ak=**********************************-sign-time=1484213027;32557109027&q-key-time=1484213027;32557109027&q-header-list=host&q-url-param-list=acl&q-signature=**************************************Content-Length: 0
https://examplebucket-1250000000.cos.ap-beijing.myqcloud.com/for-test.mp4?ci-process=snapshot&time=1.5&q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1650425932;1650433132&q-key-time=1650425932;1650433132&q-header-list=&q-url-param-list=&q-signature=**************************************
HTTP/1.1 200 OKContent-Type: image/jpegContent-Length: 266005Connection: keep-aliveDate: Fri, 10 Mar 2016 09:45:46 GMTServer: tencent-cix-cos-request-id: NTg3NzRiMjVfYmRjMzVfMTViMl82ZGZmNw==Image Content
Feedback