tencent cloud

Cloud Infinite

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Product Overview
Product Strengths
Use Cases
Feature Overview
Regions and Domains
Specifications and Limits
Billing
Billing Overview
Billing Mode
Billable Items
Free Tier
Payment Overdue
Viewing Bill Details
FAQs
Getting Started
Registering and Logging In
Bind Bucket
Uploading and Processing File
Downloading and Deleting Images
Unbinding Buckets
Using CI via COS
Features
Image Processing
Media Processing
Content Moderation
AI Content Recognition
File Processing
Smart Voice
File processing
User Guide
Overview
Bucket Management
Smart Toolbox
Job and Workflow
Data Monitoring
Usage statistics
Use Cases
Copyright Protection Solutions
Image Processing Practices
Working with API Authorization Policies
Workflow Practices
API Documentation
API Overview
Structure
Common Request Headers
Common Response Headers
Activate Vast Service
Image Processing
AI-Based Content Recognition
Smart Audio
Media Processing
Content Moderation
Document Processing
File Processing
Job and Workflow
Cloud Virus Detection
Error Codes
Request Signature
SDK Documentation
SDK Overview
Android SDK
iOS SDK
COS Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Go SDK
COS iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
Mini Program SDK
Personal Information Protection Policy for SDK
Security and Compliance
Permission ‍Management
FAQs
Basic Settings
Document Processing
Media Processing
Content Recognition
Smart Audio
Agreements
Service Level Agreement
Contact Us
Glossary

Querying HLS Playback Key

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2025-09-08 18:59:38

Feature Overview

When playing encrypted videos, call this API to query the HLS playback key (playKey) for generate signature token service.

Authorization Guide

Set action to ci:GetPlayKey in the authorization policy. View all actions.

Request

Request Sample

GET /playKey HTTP/1.1
Host: <BucketName-APPID>.ci.<Region>.myqcloud.com
Date: <GMT Date>
Authorization: <Auth String>
Content-Length: <length>
Content-Type: application/xml

Note:
Authorization: Auth String. For details, see the Request Signature documentation.
When using with a sub-account, required permissions must be granted. For details, see the Authorization Granularity Detail documentation.

Request Header

This API only uses common request headers. For details, see Common Request Headers documentation.

Request Body

This API has no request body.

Response

Response Headers

This API only returns common response headers. For details, see Common Response Headers documentation.

Response Body

The response body is returned as application/xml. An example including the complete node data is shown below:
<Response>
<RequestId></RequestId>
<PlayKeyList>
<MasterPlayKey></MasterPlayKey>
<BackupPlayKey></BackupPlayKey>
</PlayKeyList>
</Response>
The data content is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Response
None
Container for saving results
Container

The content of Response container node
:
Node Name (Keyword)
Parent Node
Description
Type
RequestId
Response
Unique request ID
String
PlayKeyList
Response
Container for saving playback keys
Container

The content of PlayKeyList container node
:
Node Name (Keyword)
Parent Node
Description
Type
MasterPlayKey
Response.PlayKeyList
Primary playback key
String
BackupPlayKey
Response.PlayKeyList
Backup playback key
String

Error Codes

This request returns common error responses and error codes. For more information, see Error Codes.

Practical Example

Request

GET /playKey HTTP/1.1
Authorization: q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************
Host: test-1234567890.ci.ap-beijing.myqcloud.com
Content-Length: 0
Content-Type: application/xml


Response

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 100
Connection: keep-alive
Date: Thu, 14 Jul 2022 12:37:29 GMT
Server: tencent-ci
x-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****

<Response>
<RequestId>NjQ0NGNlNDZfMThhYTk0MGFfY*********</RequestId>
<PlayKeyList>
<MasterPlayKey>122fde9d792c4238be64925b3189e718</MasterPlayKey>
<BackupPlayKey>acd233e114a74394ac3e3eac0b86fe68</BackupPlayKey>
</PlayKeyList>
</Response>


Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan