Interface CaptionEncodeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CaptionEncodeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:40.949Z")
@Stability(Experimental)
public interface CaptionEncodeProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for a caption encode configuration.
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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCaptionEncodePropsstatic final classAn implementation forCaptionEncodeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CaptionEncodeProps.Builderbuilder()default CaptionAccessibility(experimental) Whether this caption track implements accessibility features.default List<CaptionDashRole> (experimental) The DASH roles to assign to this captions output.(experimental) The name of the caption selector in the input to use as the source.(experimental) The output caption format.default DvbDashAccessibility(experimental) DVB DASH accessibility signaling for this captions output.default String(experimental) The ISO 639-2 language code for the captions (e.g.default String(experimental) Human-readable description of the captions (e.g.getName()(experimental) A unique name for this caption encode.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCaptionSelectorName
(experimental) The name of the caption selector in the input to use as the source. -
getDestination
(experimental) The output caption format.Use the
CaptionDestinationfactory methods (e.g.CaptionDestination.burnIn(),.webvtt(),.embedded()). -
getName
(experimental) A unique name for this caption encode. -
getAccessibility
(experimental) Whether this caption track implements accessibility features.Default: - The captions do not implement accessibility features
-
getCaptionDashRoles
(experimental) The DASH roles to assign to this captions output.Applies only when the output is configured for DVB DASH accessibility signaling.
Default: - no DASH roles
-
getDvbDashAccessibility
(experimental) DVB DASH accessibility signaling for this captions output.Default: - no DVB DASH accessibility signaling
-
getLanguageCode
(experimental) The ISO 639-2 language code for the captions (e.g. 'eng', 'spa').Default: - no language code
-
getLanguageDescription
(experimental) Human-readable description of the captions (e.g. 'English', 'Spanish').Default: - no language description
-
builder
- Returns:
- a
CaptionEncodeProps.BuilderofCaptionEncodeProps
-