LivePackagingConfig

Updated at:

Parameter

Type

Description

Example

object

The live streaming packaging configuration.

DrmConfig

object

The DRM encryption provider configuration. If encryption is not used, leave all fields empty.

SystemIds

array

The DRM system IDs, which are determined by the protocol type used.

  • DASH: supports Google Widevine and Microsoft PlayReady

  • HLS: not supported

  • HLS_CMAF: supports Apple FairPlay, Google Widevine, and Microsoft PlayReady

The following three DRM systems are supported, with their corresponding system IDs:

  • Apple FairPlay: 94ce86fb-07ff-4f43-adb8-93d2fa968ca2

  • Google Widevine: edef8ba9-79d6-4ace-a3c8-27dcd51d21ed

  • Microsoft PlayReady: 9a04f079-9840-4286-ab92-e65be0885f95.

string

The DRM system ID.

9a04f079-9840-4286-ab92-e65be0885f95

EncryptionMethod

string

The encryption algorithm. Valid values:

  • SAMPLE_AES

Default value: empty, which indicates no encryption.

SAMPLE_AES

IV

string

The optional 128-bit (16-byte) hexadecimal value represented by a 32-character string, used with the key for encrypted 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 in seconds. Default value: 0, which indicates that keys are not rotated.

0

ContentId

string

The content ID in the DRM system. Format: [A-Za-z0-9_-]+. Maximum length: 256 characters. You must ensure the uniqueness of the content ID. Otherwise, DRM playback may fail.

live-axb1-9dd2fa123

SegmentDuration

integer

The duration of each segment in seconds. Default value: the segment duration of the channel. 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 for TS segments.

true

LiveManifestConfigs

array

The live streaming manifest configuration. Up to one configuration is supported.

LiveManifestConfig

The live streaming manifest configuration.

PartDurationMs

integer

The duration of an LL-HLS part or an LL-DASH chunk in milliseconds. The value must be no less than 200 and no greater than the segment duration in milliseconds.

350