interface SegmentConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.SegmentConfiguration |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#SegmentConfiguration |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.SegmentConfiguration |
Python | aws_cdk.aws_mediapackagev2_alpha.SegmentConfiguration |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป SegmentConfiguration |
Obtainable from
Segment.cmaf(), Segment.ism(), Segment.ts()
The segment configuration, including the segment name, duration, and other configuration values.
Example
declare const channel: Channel;
declare const spekeRole: iam.IRole;
new OriginEndpoint(this, 'TsEndpoint', {
channel,
segment: Segment.ts({
encryption: TsEncryption.speke({
method: TsEncryptionMethod.SAMPLE_AES,
resourceId: 'my-content-id',
url: 'https://example.com/speke',
role: spekeRole,
}),
}),
manifests: [Manifest.hls({ manifestName: 'index' })],
});
Properties
| Name | Type | Description |
|---|---|---|
| container | Container | The container type for this segment (TS or CMAF). |
| encryption? | Encryption | Encryption configuration for the segment. |
| include | boolean | Whether the segment includes I-frame-only streams. |
| scte | Scte[] | The SCTE-35 configuration associated with the segment. |
| scte | Scte | Controls whether SCTE-35 messages are included in segment files. |
| segment | Duration | The duration of the segments. |
| segment | string | The name of the segment associated with the origin endpoint. |
| ts | boolean | Whether the segment includes DVB subtitles. |
| ts | boolean | Whether the segment is an audio rendition group. |
containerType
Type:
Container
The container type for this segment (TS or CMAF).
encryption?
Type:
Encryption
(optional, default: No encryption)
Encryption configuration for the segment.
includeIframeOnlyStreams?
Type:
boolean
(optional, default: undefined - Not specified.)
Whether the segment includes I-frame-only streams.
scteFilter?
Type:
Scte[]
(optional, default: No SCTE filtering)
The SCTE-35 configuration associated with the segment.
The SCTE-35 message types that you want to be treated as ad markers in the output.
scteInSegments?
Type:
Scte
(optional, default: SCTE-35 messages are not included in segments)
Controls whether SCTE-35 messages are included in segment files.
segmentDuration?
Type:
Duration
(optional, default: 6)
The duration of the segments.
segmentName?
Type:
string
(optional, default: segment)
The name of the segment associated with the origin endpoint.
tsIncludeDvbSubtitles?
Type:
boolean
(optional, default: false)
Whether the segment includes DVB subtitles.
tsUseAudioRenditionGroup?
Type:
boolean
(optional, default: false)
Whether the segment is an audio rendition group.

.NET
Go
Java
Python
TypeScript (