public class DrmClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION| Constructor and Description |
|---|
DrmClient(Credential credential,
String region)
构造client
|
DrmClient(Credential credential,
String region,
ClientProfile profile)
构造client
|
| Modifier and Type | Method and Description |
|---|---|
CreateLicenseResponse |
CreateLicense(CreateLicenseRequest req)
本接口用来生成DRM方案对应的播放许可证,开发者需提供DRM方案类型、内容类型参数,后台将生成许可证后返回许可证数据
开发者需要转发终端设备发出的许可证请求信息。
|
DescribeKeysResponse |
DescribeKeys(DescribeKeysRequest req)
开发者需要指定使用的DRM类型、和需要加密的Track类型,后台返回加密使用的密钥
如果加密使用的ContentID没有关联的密钥信息,后台会自动生成新的密钥返回
|
StartEncryptionResponse |
StartEncryption(StartEncryptionRequest req)
开发者调用该接口,启动一次内容文件的DRM加密工作流
|
getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegionpublic DrmClient(Credential credential, String region)
credential - 认证信息实例region - 产品地域public DrmClient(Credential credential, String region, ClientProfile profile)
credential - 认证信息实例region - 产品地域profile - 配置实例public CreateLicenseResponse CreateLicense(CreateLicenseRequest req) throws TencentCloudSDKException
req - CreateLicenseRequestTencentCloudSDKExceptionpublic DescribeKeysResponse DescribeKeys(DescribeKeysRequest req) throws TencentCloudSDKException
req - DescribeKeysRequestTencentCloudSDKExceptionpublic StartEncryptionResponse StartEncryption(StartEncryptionRequest req) throws TencentCloudSDKException
req - StartEncryptionRequestTencentCloudSDKExceptionCopyright © 2019. All rights reserved.