Interface TsSegmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,SegmentPropsBase
- All Known Implementing Classes:
TsSegmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T09:32:03.749Z")
@Stability(Experimental)
public interface TsSegmentProps
extends software.amazon.jsii.JsiiSerializable, SegmentPropsBase
(experimental) Properties for TS (Transport Stream) segment configuration.
Example:
Channel channel;
OriginEndpoint.Builder.create(this, "TsEndpoint")
.channel(channel)
.segment(Segment.ts(TsSegmentProps.builder()
.duration(Duration.seconds(6))
.name("segment")
.includeDvbSubtitles(true)
.useAudioRenditionGroup(true)
.includeIframeOnlyStreams(false)
.scteFilter(List.of(ScteMessageType.BREAK, ScteMessageType.DISTRIBUTOR_ADVERTISEMENT))
.build()))
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
.build();
OriginEndpoint.Builder.create(this, "CmafEndpoint")
.channel(channel)
.segment(Segment.cmaf(CmafSegmentProps.builder()
.duration(Duration.seconds(6))
.name("segment")
.includeIframeOnlyStreams(true)
.scteFilter(List.of(ScteMessageType.DISTRIBUTOR_ADVERTISEMENT))
.build()))
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
.build();
OriginEndpoint.Builder.create(this, "Endpoint")
.channel(channel)
.segment(Segment.cmaf())
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTsSegmentPropsstatic final classAn implementation forTsSegmentProps -
Method Summary
Modifier and TypeMethodDescriptionstatic TsSegmentProps.Builderbuilder()default TsEncryption(experimental) Encryption configuration for the TS segment.default Boolean(experimental) Whether to include DVB subtitles.default List<ScteMessageType> (experimental) SCTE-35 message types to treat as ad markers.default ScteInSegments(experimental) Controls whether SCTE-35 messages are included in segment files.default Boolean(experimental) Whether to use audio rendition groups.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.mediapackagev2.alpha.SegmentPropsBase
getDuration, getIncludeIframeOnlyStreams, getName
-
Method Details
-
getEncryption
(experimental) Encryption configuration for the TS segment.Use
TsEncryption.speke()to create the configuration.Default: - No encryption
-
getIncludeDvbSubtitles
(experimental) Whether to include DVB subtitles.Default: false
-
getScteFilter
(experimental) SCTE-35 message types to treat as ad markers.Default: - no filtering
-
getScteInSegments
(experimental) Controls whether SCTE-35 messages are included in segment files.Default: - SCTE-35 messages are not included in segments
-
getUseAudioRenditionGroup
(experimental) Whether to use audio rendition groups.Default: false
-
builder
- Returns:
- a
TsSegmentProps.BuilderofTsSegmentProps
-