interface CmafSegmentProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.CmafSegmentProps |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#CmafSegmentProps |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.CmafSegmentProps |
Python | aws_cdk.aws_mediapackagev2_alpha.CmafSegmentProps |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป CmafSegmentProps |
Implements
Segment
Properties for CMAF segment configuration.
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' })],
});
Properties
| Name | Type | Description |
|---|---|---|
| duration? | Duration | Duration of each segment. |
| encryption? | Cmaf | Encryption configuration for the CMAF segment. |
| include | boolean | Whether to include I-frame-only streams. |
| name? | string | Name of the segment. |
| scte | Scte[] | SCTE-35 message types to treat as ad markers. |
| scte | Scte | Controls whether SCTE-35 messages are included in segment files. |
duration?
Type:
Duration
(optional, default: Duration.seconds(6))
Duration of each segment.
encryption?
Type:
Cmaf
(optional, default: No encryption)
Encryption configuration for the CMAF segment.
Use CmafEncryption.speke() to create the configuration.
includeIframeOnlyStreams?
Type:
boolean
(optional, default: false)
Whether to include I-frame-only streams.
name?
Type:
string
(optional, default: 'segment')
Name of the segment.
scteFilter?
Type:
Scte[]
(optional, default: no filtering)
SCTE-35 message types to treat as ad markers.
scteInSegments?
Type:
Scte
(optional, default: SCTE-35 messages are not included in segments)
Controls whether SCTE-35 messages are included in segment files.

.NET
Go
Java
Python
TypeScript (