PresetSpeke20Audio
- class aws_cdk.aws_mediapackagev2_alpha.PresetSpeke20Audio(*values)
Bases:
Enum(experimental) A collection of audio encryption presets.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# channel: Channel # speke_role: iam.IRole OriginEndpoint(self, "Endpoint", channel=channel, segment=Segment.cmaf( encryption=CmafEncryption.speke( method=CmafEncryptionMethod.CBCS, drm_systems=[CmafDrmSystem.FAIRPLAY, CmafDrmSystem.WIDEVINE], resource_id="my-content-id", url="https://example.com/speke", role=speke_role, key_rotation_interval=Duration.seconds(300), audio_preset=PresetSpeke20Audio.PRESET_AUDIO_2, video_preset=PresetSpeke20Video.PRESET_VIDEO_2 ) ), manifests=[Manifest.hls(manifest_name="index")] )
Attributes
- PRESET_AUDIO_1
(experimental) Use one content key to encrypt all of the audio tracks in your stream.
- Stability:
experimental
- PRESET_AUDIO_2
(experimental) Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.
- Stability:
experimental
- PRESET_AUDIO_3
(experimental) 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.
- Stability:
experimental
- SHARED
(experimental) Use the same content key for all of the audio and video tracks in your stream.
- Stability:
experimental
- UNENCRYPTED
(experimental) Don’t encrypt any of the audio tracks in your stream.
- Stability:
experimental