enum PresetSpeke20Audio
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.PresetSpeke20Audio |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#PresetSpeke20Audio |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.PresetSpeke20Audio |
Python | aws_cdk.aws_mediapackagev2_alpha.PresetSpeke20Audio |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป PresetSpeke20Audio |
A collection of audio encryption presets.
Example
declare const channel: Channel;
declare const spekeRole: iam.IRole;
new OriginEndpoint(this, 'Endpoint', {
channel,
segment: Segment.cmaf({
encryption: CmafEncryption.speke({
method: CmafEncryptionMethod.CBCS,
drmSystems: [CmafDrmSystem.FAIRPLAY, CmafDrmSystem.WIDEVINE],
resourceId: 'my-content-id',
url: 'https://example.com/speke',
role: spekeRole,
keyRotationInterval: Duration.seconds(300),
audioPreset: PresetSpeke20Audio.PRESET_AUDIO_2,
videoPreset: PresetSpeke20Video.PRESET_VIDEO_2,
}),
}),
manifests: [Manifest.hls({ manifestName: 'index' })],
});
Members
| Name | Description |
|---|---|
| PRESET_AUDIO_1 | Use one content key to encrypt all of the audio tracks in your stream. |
| PRESET_AUDIO_2 | Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks. |
| PRESET_AUDIO_3 | Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels. |
| SHARED | Use the same content key for all of the audio and video tracks in your stream. |
| UNENCRYPTED | Don't encrypt any of the audio tracks in your stream. |
PRESET_AUDIO_1
Use one content key to encrypt all of the audio tracks in your stream.
PRESET_AUDIO_2
Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.
PRESET_AUDIO_3
Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels.
SHARED
Use the same content key for all of the audio and video tracks in your stream.
UNENCRYPTED
Don't encrypt any of the audio tracks in your stream.

.NET
Go
Java
Python
TypeScript (