Class CaptionAlignment
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.medialive.alpha.CaptionAlignment
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:40.944Z")
@Stability(Experimental)
public class CaptionAlignment
extends software.amazon.jsii.JsiiObject
(experimental) Caption alignment for burn-in and DVB-Sub outputs.
Example:
// Define a caption selector on the input attachment (see Input Attachment Settings below)
CaptionSelector captionSelector = CaptionSelector.embedded("captions");
// WebVTT captions — packaged alongside the video encode in the same output
EncodeConfiguration webvtt = EncodeConfiguration.caption(CaptionEncodeProps.builder()
.name("eng_webvtt")
.captionSelectorName(captionSelector.getName())
.languageCode("eng")
.languageDescription("English")
.destination(CaptionDestination.webvtt())
.build());
// Burned-in captions — rendered into the video, styled via the burn-in options
EncodeConfiguration burnIn = EncodeConfiguration.caption(CaptionEncodeProps.builder()
.name("eng_burnin")
.captionSelectorName(captionSelector.getName())
.destination(CaptionDestination.burnIn(BurnInDestinationProps.builder()
.alignment(CaptionAlignment.CENTERED)
.fontColor(CaptionFontColor.WHITE)
.outlineColor(CaptionOutlineColor.BLACK)
.fontSize(CaptionFontSize.AUTO)
.build()))
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CaptionAlignment(experimental) Center the captions.static final CaptionAlignment(experimental) Left-align the captions.static final CaptionAlignment(experimental) Smart: left-justify live subtitles, center-justify pre-recorded subtitles. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCaptionAlignment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCaptionAlignment(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()(experimental) The underlying string value passed to CloudFormation.static CaptionAlignment(experimental) A value not yet modelled by AWS CDK.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CENTERED
(experimental) Center the captions. -
LEFT
(experimental) Left-align the captions. -
SMART
(experimental) Smart: left-justify live subtitles, center-justify pre-recorded subtitles.
-
-
Constructor Details
-
CaptionAlignment
protected CaptionAlignment(software.amazon.jsii.JsiiObjectRef objRef) -
CaptionAlignment
protected CaptionAlignment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
(experimental) A value not yet modelled by AWS CDK.- Parameters:
value- This parameter is required.
-
getValue
(experimental) The underlying string value passed to CloudFormation.
-