ci:GetPrivateM3U8 permission must be granted. For details, please refer to Cloud Infinite.GET /<ObjectKey>?ci-process=pm3u8&expires=3600 HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>
Parameter | Description | Type | Required |
ObjectKey | The filename in the COS bucket, where the bucket is specified by the Host. For example, in the Beijing-based "examplebucket-1250000000" bucket, under the "test" directory, the file "a.m3u8”, the Host should be filled as "examplebucket1250000000.cos.ap-beijing.myqcloud.com", and the ObjectKey should be filled as "test/a.m3u8". | String | No |
ci-process | Operation type, fixed as pm3u8 | String | Yes |
expires | Relative validity period of the download credential for the private TS resource URL, in seconds, range [3600, 43200] | Int | Yes |
GET /for-test.pm3u8?ci-process=pm3u8&expires=3600 HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Fri, 10 Mar 2016 09:45:46 GMTAuthorization: Auth StringContent-Length: 0
HTTP/1.1 200 OKContent-Type: application/x-mpegURLContent-Length: 266005Connection: keep-aliveDate: Fri, 10 Mar 2016 09:45:46 GMTServer: tencent-cix-cos-request-id: NTg3NzRiMjVfYmRjMzVfMTViMl82ZGZm****#EXTM3U#EXT-X-VERSION:3#EXT-X-TARGETDURATION:11#EXT-X-MEDIA-SEQUENCE:0#EXT-X-KEY:METHOD=AES-128,URI="http://website.com/aes.key?Ciphertext=xxxxx&KMSRegion=ap-guangzhou",IV=0x00000000000000000000000000000000#EXTINF:11.333333,test-00000.ts?q-sign-algorithm=sha1&q-ak=&q-sign-time=&q-key-time=&q-header-list=host&q-url-param-list=&q-signature=&x-cos-security-token=#EXTINF:9.416667,test-00001.ts?q-sign-algorithm=sha1&q-ak=&q-sign-time=&q-key-time=&q-header-list=host&q-url-param-list=&q-signature=&x-cos-security-token=#EXTINF:9.375000,test-00002.ts?q-sign-algorithm=sha1&q-ak=&q-sign-time=&q-key-time=&q-header-list=host&q-url-param-list=&q-signature=&x-cos-security-token=#EXTINF:11.291667,test-00003.ts?q-sign-algorithm=sha1&q-ak=&q-sign-time=&q-key-time=&q-header-list=host&q-url-param-list=&q-signature=&x-cos-security-token=#EXTINF:3.500000,test-00004.ts?q-sign-algorithm=sha1&q-ak=&q-sign-time=&q-key-time=&q-header-list=host&q-url-param-list=&q-signature=&x-cos-security-token=#EXT-X-ENDLIST
Feedback