public class DrmSettingsInfo extends AbstractModel
Constructor and Description |
---|
DrmSettingsInfo() |
DrmSettingsInfo(DrmSettingsInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentId()
Get When `Scheme` is set to TencentDRM, this parameter should be set to the `ContentId` of DRM encryption, and if this parameter is left empty, a `ContentId` will be automatically created.
|
DrmKey[] |
getKeys()
Get The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys.
|
String |
getScheme()
Get Valid values: TencentDRM, CustomDRMKeys.
|
String |
getState()
Get Whether to enable DRM encryption.
|
void |
setContentId(String ContentId)
Set When `Scheme` is set to TencentDRM, this parameter should be set to the `ContentId` of DRM encryption, and if this parameter is left empty, a `ContentId` will be automatically created.
|
void |
setKeys(DrmKey[] Keys)
Set The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys.
|
void |
setScheme(String Scheme)
Set Valid values: TencentDRM, CustomDRMKeys.
|
void |
setState(String State)
Set Whether to enable DRM encryption.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public DrmSettingsInfo()
public DrmSettingsInfo(DrmSettingsInfo source)
public String getState()
public void setState(String State)
State
- Whether to enable DRM encryption. Valid value: CLOSE/OPEN. Default value: CLOSE.
Currently, this is supported only for HLS/DASH/HLS_ARCHIVE/DASH_ARCHIVE.public String getContentId()
public void setContentId(String ContentId)
ContentId
- When `Scheme` is set to TencentDRM, this parameter should be set to the `ContentId` of DRM encryption, and if this parameter is left empty, a `ContentId` will be automatically created. For more information, please see [here](https://intl.cloud.tencent.com/document/product/1000/40960?from_cn_redirect=1).
When `Scheme` is set to CustomDRMKeys, this parameter is required and should be specified by the user.public String getScheme()
public void setScheme(String Scheme)
Scheme
- Valid values: TencentDRM, CustomDRMKeys. If this parameter is left empty, TencentDRM will be used by default.
TencentDRM refers to Tencent digital rights management (DRM) encryption. For more information, please see [here](https://intl.cloud.tencent.com/solution/drm?from_cn_redirect=1).
CustomDRMKeys refers to an encryption key customized by the user.public DrmKey[] getKeys()
public void setKeys(DrmKey[] Keys)
Keys
- The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.