public class DrmSettingsInfo extends AbstractModel
header, skipSign
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 If `Scheme` is set to `CustomDRMKeys`, this parameter is required.
|
String |
getDrmType()
Get The DRM type.
|
DrmKey[] |
getKeys()
Get The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys.
|
String |
getScheme()
Get Valid values: `CustomDRMKeys` (default value), `SDMCDRM`
`CustomDRMKeys` means encryption keys customized by users.
|
SDMCSettingsInfo |
getSDMCSettings()
Get SDMC key configuration.
|
String |
getState()
Get Whether to enable DRM encryption.
|
void |
setContentId(String ContentId)
Set If `Scheme` is set to `CustomDRMKeys`, this parameter is required.
|
void |
setDrmType(String DrmType)
Set The DRM type.
|
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: `CustomDRMKeys` (default value), `SDMCDRM`
`CustomDRMKeys` means encryption keys customized by users.
|
void |
setSDMCSettings(SDMCSettingsInfo SDMCSettings)
Set SDMC key configuration.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DrmSettingsInfo()
public DrmSettingsInfo(DrmSettingsInfo source)
public String getState()
public void setState(String State)
State
- Whether to enable DRM encryption. Valid values: `CLOSE` (disable), `OPEN` (enable). Default value: `CLOSE`
DRM encryption is supported only for HLS, DASH, HLS_ARCHIVE, DASH_ARCHIVE, HLS_MEDIAPACKAGE, and DASH_MEDIAPACKAGE outputs.public String getScheme()
public void setScheme(String Scheme)
Scheme
- Valid values: `CustomDRMKeys` (default value), `SDMCDRM`
`CustomDRMKeys` means encryption keys customized by users.
`SDMCDRM` means the DRM key management system of SDMC.public String getContentId()
public void setContentId(String ContentId)
ContentId
- If `Scheme` is set to `CustomDRMKeys`, this parameter is required.
If `Scheme` is set to `SDMCDRM`, this parameter is optional. It supports digits, letters, hyphens, and underscores and must contain 1 to 36 characters. If it is not specified, the value of `ChannelId` will be used.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.public SDMCSettingsInfo getSDMCSettings()
public void setSDMCSettings(SDMCSettingsInfo SDMCSettings)
SDMCSettings
- SDMC key configuration. This parameter is used when `Scheme` is set to `SDMCDRM`.
Note: This field may return `null`, indicating that no valid value was found.public String getDrmType()
public void setDrmType(String DrmType)
DrmType
- The DRM type. Valid values: `FAIRPLAY`, `WIDEVINE`, `AES128`, `PLAYREADY`. For HLS, this can be `FAIRPLAY` or `AES128` or `PLAYREADY`. For DASH, valid values: `WIDEVINE` or `PLAYREADY`.Copyright © 2024. All rights reserved.