public class DRMInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
DRMInfo() |
DRMInfo(DRMInfo 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 |
getAudioEncryptionPreset()
Get Audio encryption presets, options:
`Preset Audio 1` - Encrypts all audio tracks with one key
`Preset Audio 2` - Encrypts STEREO and MULTICHANNEL audio tracks with 2 different keys
`Preset Audio 3` - Encrypts STEREO, MULTICHANNEL 3-6 and MULTICHANNEL 7 audio tracks with 3 different keys
`Shared` - Encrypts all video and audio tracks with one key
`Unencrypted` - Does not encrypt any track
|
String |
getConstantInitializationVector()
Get Optional, used together with the key to encrypt the content; a 128-bit, 32-character, hexadecimal-encoded string.
|
String[] |
getDRMSystems()
Get DRM system providers, when the encryption method is CBCS, the optional values are `PlayReady`, `Widevine`, `FairPlay`; when the encryption method is CENC, the oprional values are `PlayReady`, `Widevine`.
|
String |
getEncryptionMethod()
Get Encryption method, optional values: `CBCS`, `CENC`.
|
Long |
getKeyRotationInterval()
Get Optional, specifies the rotation interval in seconds; empty, or an integer between 300-2592000.
|
String |
getKeyServerUrl()
Get Key server address; must start with https://.
|
String |
getResourceID()
Get The resource ID sent to the key server.
|
String |
getVideoEncryptionPreset()
Get Video encryption presets, options:
`Preset Video 1` - Encrypts all video tracks with one key
`Preset Video 2` - Encrypts SD and HD video tracks with 2 different keys
`Preset Video 3` - Encrypts SD, HD and UHD video tracks with 3 different keys
`Preset Video 4` - Encrypts SD, HD, UHD1 and UHD2 video tracks with 4 different keys
`Preset Video 5` - Encrypts SD, HD1, HD2, UHD1 and UHD2 video tracks with 5 different keys
`Preset Video 6` - Encrypts SD, HD1, HD2, UHD video tracks with 4 different keys
`Preset Video 7` - Encrypts SD + HD1, HD2, UHD video tracks with 3 different keys
`Preset Video 8` - Encrypts SD + HD1, HD2, UHD1, UHD2 video tracks with 4 different keys
`Shared` - Encrypts all video and audio tracks with one key
`Unencrypted` - Does not encrypt any track
|
void |
setAudioEncryptionPreset(String AudioEncryptionPreset)
Set Audio encryption presets, options:
`Preset Audio 1` - Encrypts all audio tracks with one key
`Preset Audio 2` - Encrypts STEREO and MULTICHANNEL audio tracks with 2 different keys
`Preset Audio 3` - Encrypts STEREO, MULTICHANNEL 3-6 and MULTICHANNEL 7 audio tracks with 3 different keys
`Shared` - Encrypts all video and audio tracks with one key
`Unencrypted` - Does not encrypt any track
|
void |
setConstantInitializationVector(String ConstantInitializationVector)
Set Optional, used together with the key to encrypt the content; a 128-bit, 32-character, hexadecimal-encoded string.
|
void |
setDRMSystems(String[] DRMSystems)
Set DRM system providers, when the encryption method is CBCS, the optional values are `PlayReady`, `Widevine`, `FairPlay`; when the encryption method is CENC, the oprional values are `PlayReady`, `Widevine`.
|
void |
setEncryptionMethod(String EncryptionMethod)
Set Encryption method, optional values: `CBCS`, `CENC`.
|
void |
setKeyRotationInterval(Long KeyRotationInterval)
Set Optional, specifies the rotation interval in seconds; empty, or an integer between 300-2592000.
|
void |
setKeyServerUrl(String KeyServerUrl)
Set Key server address; must start with https://.
|
void |
setResourceID(String ResourceID)
Set The resource ID sent to the key server.
|
void |
setVideoEncryptionPreset(String VideoEncryptionPreset)
Set Video encryption presets, options:
`Preset Video 1` - Encrypts all video tracks with one key
`Preset Video 2` - Encrypts SD and HD video tracks with 2 different keys
`Preset Video 3` - Encrypts SD, HD and UHD video tracks with 3 different keys
`Preset Video 4` - Encrypts SD, HD, UHD1 and UHD2 video tracks with 4 different keys
`Preset Video 5` - Encrypts SD, HD1, HD2, UHD1 and UHD2 video tracks with 5 different keys
`Preset Video 6` - Encrypts SD, HD1, HD2, UHD video tracks with 4 different keys
`Preset Video 7` - Encrypts SD + HD1, HD2, UHD video tracks with 3 different keys
`Preset Video 8` - Encrypts SD + HD1, HD2, UHD1, UHD2 video tracks with 4 different keys
`Shared` - Encrypts all video and audio tracks with one key
`Unencrypted` - Does not encrypt any track
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DRMInfo()
public DRMInfo(DRMInfo source)
public String getEncryptionMethod()
public void setEncryptionMethod(String EncryptionMethod)
EncryptionMethod
- Encryption method, optional values: `CBCS`, `CENC`.public String[] getDRMSystems()
public void setDRMSystems(String[] DRMSystems)
DRMSystems
- DRM system providers, when the encryption method is CBCS, the optional values are `PlayReady`, `Widevine`, `FairPlay`; when the encryption method is CENC, the oprional values are `PlayReady`, `Widevine`.public String getResourceID()
public void setResourceID(String ResourceID)
ResourceID
- The resource ID sent to the key server. It can contain 1 to 128 characters, including numbers, letters, underscores (_), and hyphens (-).public String getKeyServerUrl()
public void setKeyServerUrl(String KeyServerUrl)
KeyServerUrl
- Key server address; must start with https://.public String getVideoEncryptionPreset()
public void setVideoEncryptionPreset(String VideoEncryptionPreset)
VideoEncryptionPreset
- Video encryption presets, options:
`Preset Video 1` - Encrypts all video tracks with one key
`Preset Video 2` - Encrypts SD and HD video tracks with 2 different keys
`Preset Video 3` - Encrypts SD, HD and UHD video tracks with 3 different keys
`Preset Video 4` - Encrypts SD, HD, UHD1 and UHD2 video tracks with 4 different keys
`Preset Video 5` - Encrypts SD, HD1, HD2, UHD1 and UHD2 video tracks with 5 different keys
`Preset Video 6` - Encrypts SD, HD1, HD2, UHD video tracks with 4 different keys
`Preset Video 7` - Encrypts SD + HD1, HD2, UHD video tracks with 3 different keys
`Preset Video 8` - Encrypts SD + HD1, HD2, UHD1, UHD2 video tracks with 4 different keys
`Shared` - Encrypts all video and audio tracks with one key
`Unencrypted` - Does not encrypt any trackpublic String getAudioEncryptionPreset()
public void setAudioEncryptionPreset(String AudioEncryptionPreset)
AudioEncryptionPreset
- Audio encryption presets, options:
`Preset Audio 1` - Encrypts all audio tracks with one key
`Preset Audio 2` - Encrypts STEREO and MULTICHANNEL audio tracks with 2 different keys
`Preset Audio 3` - Encrypts STEREO, MULTICHANNEL 3-6 and MULTICHANNEL 7 audio tracks with 3 different keys
`Shared` - Encrypts all video and audio tracks with one key
`Unencrypted` - Does not encrypt any trackpublic String getConstantInitializationVector()
public void setConstantInitializationVector(String ConstantInitializationVector)
ConstantInitializationVector
- Optional, used together with the key to encrypt the content; a 128-bit, 32-character, hexadecimal-encoded string.public Long getKeyRotationInterval()
public void setKeyRotationInterval(Long KeyRotationInterval)
KeyRotationInterval
- Optional, specifies the rotation interval in seconds; empty, or an integer between 300-2592000.Copyright © 2025. All rights reserved.