Class CaptionFontSize
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.medialive.alpha.CaptionFontSize
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:40.952Z")
@Stability(Experimental)
public class CaptionFontSize
extends software.amazon.jsii.JsiiObject
(experimental) Font size for burn-in and DVB-Sub captions.
Use
to scale the font size with the output resolution, or
invalid reference
CaptionFontSize.AUTO
to set an exact size in points.
invalid reference
CaptionFontSize.of
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 CaptionFontSize(experimental) Scale the font size automatically to match the output resolution. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCaptionFontSize(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCaptionFontSize(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic CaptionFontSize(experimental) An exact font size, in points.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
-
AUTO
(experimental) Scale the font size automatically to match the output resolution.
-
-
Constructor Details
-
CaptionFontSize
protected CaptionFontSize(software.amazon.jsii.JsiiObjectRef objRef) -
CaptionFontSize
protected CaptionFontSize(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
(experimental) An exact font size, in points.- Parameters:
points- the font size in points;. This parameter is required.
-