|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The live packaging configuration. |
||
| DrmConfig |
object |
The DRM encryption provider configuration. If encryption is not required, leave all fields empty. |
|
| SystemIds |
array |
The DRM system IDs, determined by the protocol type.
Three DRM systems are supported: Apple FairPlay, Google Widevine, and Microsoft PlayReady. The corresponding system IDs are:
|
|
|
string |
The DRM system ID. |
9a04f079-9840-4286-ab92-e65be0885f95 |
|
| EncryptionMethod |
string |
The encryption algorithm. Valid values:
Default value: empty, which indicates no encryption. |
SAMPLE_AES |
| IV |
string |
An optional 128-bit (16-byte) hexadecimal value represented by a 32-character string. This value is used together with the key to encrypt data blocks. If you do not specify this value, MediaPackage creates a constant initialization vector (IV). Default value: empty. If specified, the value is passed through to the provider as a constant initialization vector. |
00000000000000000000000000000000 |
| Url |
string |
The URL of the DRM key provider. |
https://exampledrm.com/path?arg1=xxx |
| RotatePeriod |
integer |
The DRM key rotation interval. Unit: seconds. Default value: 0, which indicates that key rotation is disabled. |
0 |
| ContentId |
string |
The content ID in the DRM system. Format: [A-Za-z0-9_-]+. Maximum length: 256 characters. Ensure that the content ID is unique. Otherwise, DRM playback may fail. |
live-axb1-9dd2fa123 |
| SegmentDuration |
integer |
The duration of each segment, in seconds. Default value: the channel segment duration. The actual segment duration is the nearest multiple of the source segment duration that is greater than or equal to the configured value. Valid values: 1 to 30. |
6 |
| UseAudioRenditionGroups |
boolean |
Specifies whether to separate audio tracks in TS segments. |
true |
| LiveManifestConfigs |
array |
The live manifest configurations. A maximum of one configuration is supported. |
|
| LiveManifestConfig |
The live manifest configuration. |
||
| PartDurationMs |
integer |