Interface CmafSegmentProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, SegmentPropsBase
All Known Implementing Classes:
CmafSegmentProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T09:32:03.708Z") @Stability(Experimental) public interface CmafSegmentProps extends software.amazon.jsii.JsiiSerializable, SegmentPropsBase
(experimental) Properties for CMAF segment configuration.

Example:

 Channel channel;
 IRole spekeRole;
 OriginEndpoint.Builder.create(this, "Endpoint")
         .channel(channel)
         .segment(Segment.cmaf(CmafSegmentProps.builder()
                 .encryption(CmafEncryption.speke(CmafSpekeEncryptionProps.builder()
                         .method(CmafEncryptionMethod.CBCS)
                         .drmSystems(List.of(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)
                         .build()))
                 .build()))
         .manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
         .build();
 
  • Method Details

    • getEncryption

      @Stability(Experimental) @Nullable default CmafEncryption getEncryption()
      (experimental) Encryption configuration for the CMAF segment.

      Use CmafEncryption.speke() to create the configuration.

      Default: - No encryption

    • getScteFilter

      @Stability(Experimental) @Nullable default List<ScteMessageType> getScteFilter()
      (experimental) SCTE-35 message types to treat as ad markers.

      Default: - no filtering

    • getScteInSegments

      @Stability(Experimental) @Nullable default ScteInSegments getScteInSegments()
      (experimental) Controls whether SCTE-35 messages are included in segment files.

      Default: - SCTE-35 messages are not included in segments

    • builder

      @Stability(Experimental) static CmafSegmentProps.Builder builder()
      Returns:
      a CmafSegmentProps.Builder of CmafSegmentProps