class CaptionOutlineColor
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.CaptionOutlineColor |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#CaptionOutlineColor |
Java | software.amazon.awscdk.services.medialive.alpha.CaptionOutlineColor |
Python | aws_cdk.aws_medialive_alpha.CaptionOutlineColor |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป CaptionOutlineColor |
Font outline color for burn-in and DVB-Sub captions.
Example
// Define a caption selector on the input attachment (see Input Attachment Settings below)
const captionSelector = medialive.CaptionSelector.embedded('captions');
// WebVTT captions โ packaged alongside the video encode in the same output
const webvtt = medialive.EncodeConfiguration.caption({
name: 'eng_webvtt',
captionSelectorName: captionSelector.name,
languageCode: 'eng',
languageDescription: 'English',
destination: medialive.CaptionDestination.webvtt(),
});
// Burned-in captions โ rendered into the video, styled via the burn-in options
const burnIn = medialive.EncodeConfiguration.caption({
name: 'eng_burnin',
captionSelectorName: captionSelector.name,
destination: medialive.CaptionDestination.burnIn({
alignment: medialive.CaptionAlignment.CENTERED,
fontColor: medialive.CaptionFontColor.WHITE,
outlineColor: medialive.CaptionOutlineColor.BLACK,
fontSize: medialive.CaptionFontSize.AUTO,
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| value | string | The underlying string value passed to CloudFormation. |
| static BLACK | Caption | Black. |
| static BLUE | Caption | Blue. |
| static GREEN | Caption | Green. |
| static RED | Caption | Red. |
| static WHITE | Caption | White. |
| static YELLOW | Caption | Yellow. |
value
Type:
string
The underlying string value passed to CloudFormation.
static BLACK
Type:
Caption
Black.
static BLUE
Type:
Caption
Blue.
static GREEN
Type:
Caption
Green.
static RED
Type:
Caption
Red.
static WHITE
Type:
Caption
White.
static YELLOW
Type:
Caption
Yellow.
Methods
| Name | Description |
|---|---|
| static of(value) | A value not yet modelled by AWS CDK. |
static of(value)
public static of(value: string): CaptionOutlineColor
Parameters
- value
string
Returns
A value not yet modelled by AWS CDK.

.NET
Go
Java
Python
TypeScript (