interface TsSegmentProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.TsSegmentProps |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#TsSegmentProps |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.TsSegmentProps |
Python | aws_cdk.aws_mediapackagev2_alpha.TsSegmentProps |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป TsSegmentProps |
Implements
Segment
Properties for TS (Transport Stream) segment configuration.
Example
declare const channel: Channel;
new OriginEndpoint(this, 'TsEndpoint', {
channel,
segment: Segment.ts({
duration: Duration.seconds(6),
name: 'segment',
includeDvbSubtitles: true,
useAudioRenditionGroup: true,
includeIframeOnlyStreams: false,
scteFilter: [
ScteMessageType.BREAK,
ScteMessageType.DISTRIBUTOR_ADVERTISEMENT,
],
}),
manifests: [Manifest.hls({ manifestName: 'index' })],
});
new OriginEndpoint(this, 'CmafEndpoint', {
channel,
segment: Segment.cmaf({
duration: Duration.seconds(6),
name: 'segment',
includeIframeOnlyStreams: true,
scteFilter: [ScteMessageType.DISTRIBUTOR_ADVERTISEMENT],
}),
manifests: [Manifest.hls({ manifestName: 'index' })],
});
new OriginEndpoint(this, 'Endpoint', {
channel,
segment: Segment.cmaf(),
manifests: [Manifest.hls({ manifestName: 'index' })],
});
Properties
| Name | Type | Description |
|---|---|---|
| duration? | Duration | Duration of each segment. |
| encryption? | Ts | Encryption configuration for the TS segment. |
| include | boolean | Whether to include DVB subtitles. |
| 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. |
| use | boolean | Whether to use audio rendition groups. |
duration?
Type:
Duration
(optional, default: Duration.seconds(6))
Duration of each segment.
encryption?
Type:
Ts
(optional, default: No encryption)
Encryption configuration for the TS segment.
Use TsEncryption.speke() to create the configuration.
includeDvbSubtitles?
Type:
boolean
(optional, default: false)
Whether to include DVB subtitles.
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.
useAudioRenditionGroup?
Type:
boolean
(optional, default: false)
Whether to use audio rendition groups.

.NET
Go
Java
Python
TypeScript (