CaptionDescriptionProperty Struct
The encoding information for output captions.
The parent of this entity is EncoderSettings.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';
const captionDescriptionProperty: medialive.CfnChannel.CaptionDescriptionProperty = {
accessibility: 'accessibility',
captionDashRoles: ['captionDashRoles'],
captionSelectorName: 'captionSelectorName',
destinationSettings: {
aribDestinationSettings: { },
burnInDestinationSettings: {
alignment: 'alignment',
backgroundColor: 'backgroundColor',
backgroundOpacity: 123,
font: {
passwordParam: 'passwordParam',
uri: 'uri',
username: 'username',
},
fontColor: 'fontColor',
fontOpacity: 123,
fontResolution: 123,
fontSize: 'fontSize',
outlineColor: 'outlineColor',
outlineSize: 123,
shadowColor: 'shadowColor',
shadowOpacity: 123,
shadowXOffset: 123,
shadowYOffset: 123,
subtitleRows: 'subtitleRows',
teletextGridControl: 'teletextGridControl',
xPosition: 123,
yPosition: 123,
},
dvbSubDestinationSettings: {
alignment: 'alignment',
backgroundColor: 'backgroundColor',
backgroundOpacity: 123,
font: {
passwordParam: 'passwordParam',
uri: 'uri',
username: 'username',
},
fontColor: 'fontColor',
fontOpacity: 123,
fontResolution: 123,
fontSize: 'fontSize',
outlineColor: 'outlineColor',
outlineSize: 123,
shadowColor: 'shadowColor',
shadowOpacity: 123,
shadowXOffset: 123,
shadowYOffset: 123,
subtitleRows: 'subtitleRows',
teletextGridControl: 'teletextGridControl',
xPosition: 123,
yPosition: 123,
},
ebuTtDDestinationSettings: {
copyrightHolder: 'copyrightHolder',
defaultFontSize: 123,
defaultLineHeight: 123,
fillLineGap: 'fillLineGap',
fontFamily: 'fontFamily',
styleControl: 'styleControl',
},
embeddedDestinationSettings: {
position: {
yPositionLine: 123,
},
styleControl: 'styleControl',
},
embeddedPlusScte20DestinationSettings: { },
rtmpCaptionInfoDestinationSettings: { },
scte20PlusEmbeddedDestinationSettings: { },
scte27DestinationSettings: { },
smpteTtDestinationSettings: { },
teletextDestinationSettings: { },
ttmlDestinationSettings: {
position: {
yPositionPercentage: 123,
},
styleControl: 'styleControl',
},
webvttDestinationSettings: {
position: {
yPositionPercentage: 123,
},
styleControl: 'styleControl',
},
},
dvbDashAccessibility: 'dvbDashAccessibility',
languageCode: 'languageCode',
languageDescription: 'languageDescription',
name: 'name',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_medialive as medialive
caption_description_property = medialive.CfnChannel.CaptionDescriptionProperty(
accessibility="accessibility",
caption_dash_roles=["captionDashRoles"],
caption_selector_name="captionSelectorName",
destination_settings=medialive.CfnChannel.CaptionDestinationSettingsProperty(
arib_destination_settings=medialive.CfnChannel.AribDestinationSettingsProperty(),
burn_in_destination_settings=medialive.CfnChannel.BurnInDestinationSettingsProperty(
alignment="alignment",
background_color="backgroundColor",
background_opacity=123,
font=medialive.CfnChannel.InputLocationProperty(
password_param="passwordParam",
uri="uri",
username="username"
),
font_color="fontColor",
font_opacity=123,
font_resolution=123,
font_size="fontSize",
outline_color="outlineColor",
outline_size=123,
shadow_color="shadowColor",
shadow_opacity=123,
shadow_x_offset=123,
shadow_y_offset=123,
subtitle_rows="subtitleRows",
teletext_grid_control="teletextGridControl",
x_position=123,
y_position=123
),
dvb_sub_destination_settings=medialive.CfnChannel.DvbSubDestinationSettingsProperty(
alignment="alignment",
background_color="backgroundColor",
background_opacity=123,
font=medialive.CfnChannel.InputLocationProperty(
password_param="passwordParam",
uri="uri",
username="username"
),
font_color="fontColor",
font_opacity=123,
font_resolution=123,
font_size="fontSize",
outline_color="outlineColor",
outline_size=123,
shadow_color="shadowColor",
shadow_opacity=123,
shadow_x_offset=123,
shadow_y_offset=123,
subtitle_rows="subtitleRows",
teletext_grid_control="teletextGridControl",
x_position=123,
y_position=123
),
ebu_tt_d_destination_settings=medialive.CfnChannel.EbuTtDDestinationSettingsProperty(
copyright_holder="copyrightHolder",
default_font_size=123,
default_line_height=123,
fill_line_gap="fillLineGap",
font_family="fontFamily",
style_control="styleControl"
),
embedded_destination_settings=medialive.CfnChannel.EmbeddedDestinationSettingsProperty(
position=medialive.CfnChannel.EmbeddedCaptionPositionSettingsProperty(
y_position_line=123
),
style_control="styleControl"
),
embedded_plus_scte20_destination_settings=medialive.CfnChannel.EmbeddedPlusScte20DestinationSettingsProperty(),
rtmp_caption_info_destination_settings=medialive.CfnChannel.RtmpCaptionInfoDestinationSettingsProperty(),
scte20_plus_embedded_destination_settings=medialive.CfnChannel.Scte20PlusEmbeddedDestinationSettingsProperty(),
scte27_destination_settings=medialive.CfnChannel.Scte27DestinationSettingsProperty(),
smpte_tt_destination_settings=medialive.CfnChannel.SmpteTtDestinationSettingsProperty(),
teletext_destination_settings=medialive.CfnChannel.TeletextDestinationSettingsProperty(),
ttml_destination_settings=medialive.CfnChannel.TtmlDestinationSettingsProperty(
position=medialive.CfnChannel.TextCaptionPositionSettingsProperty(
y_position_percentage=123
),
style_control="styleControl"
),
webvtt_destination_settings=medialive.CfnChannel.WebvttDestinationSettingsProperty(
position=medialive.CfnChannel.TextCaptionPositionSettingsProperty(
y_position_percentage=123
),
style_control="styleControl"
)
),
dvb_dash_accessibility="dvbDashAccessibility",
language_code="languageCode",
language_description="languageDescription",
name="name"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.*;
CaptionDescriptionProperty captionDescriptionProperty = CaptionDescriptionProperty.builder()
.accessibility("accessibility")
.captionDashRoles(List.of("captionDashRoles"))
.captionSelectorName("captionSelectorName")
.destinationSettings(CaptionDestinationSettingsProperty.builder()
.aribDestinationSettings(AribDestinationSettingsProperty.builder().build())
.burnInDestinationSettings(BurnInDestinationSettingsProperty.builder()
.alignment("alignment")
.backgroundColor("backgroundColor")
.backgroundOpacity(123)
.font(InputLocationProperty.builder()
.passwordParam("passwordParam")
.uri("uri")
.username("username")
.build())
.fontColor("fontColor")
.fontOpacity(123)
.fontResolution(123)
.fontSize("fontSize")
.outlineColor("outlineColor")
.outlineSize(123)
.shadowColor("shadowColor")
.shadowOpacity(123)
.shadowXOffset(123)
.shadowYOffset(123)
.subtitleRows("subtitleRows")
.teletextGridControl("teletextGridControl")
.xPosition(123)
.yPosition(123)
.build())
.dvbSubDestinationSettings(DvbSubDestinationSettingsProperty.builder()
.alignment("alignment")
.backgroundColor("backgroundColor")
.backgroundOpacity(123)
.font(InputLocationProperty.builder()
.passwordParam("passwordParam")
.uri("uri")
.username("username")
.build())
.fontColor("fontColor")
.fontOpacity(123)
.fontResolution(123)
.fontSize("fontSize")
.outlineColor("outlineColor")
.outlineSize(123)
.shadowColor("shadowColor")
.shadowOpacity(123)
.shadowXOffset(123)
.shadowYOffset(123)
.subtitleRows("subtitleRows")
.teletextGridControl("teletextGridControl")
.xPosition(123)
.yPosition(123)
.build())
.ebuTtDDestinationSettings(EbuTtDDestinationSettingsProperty.builder()
.copyrightHolder("copyrightHolder")
.defaultFontSize(123)
.defaultLineHeight(123)
.fillLineGap("fillLineGap")
.fontFamily("fontFamily")
.styleControl("styleControl")
.build())
.embeddedDestinationSettings(EmbeddedDestinationSettingsProperty.builder()
.position(EmbeddedCaptionPositionSettingsProperty.builder()
.yPositionLine(123)
.build())
.styleControl("styleControl")
.build())
.embeddedPlusScte20DestinationSettings(EmbeddedPlusScte20DestinationSettingsProperty.builder().build())
.rtmpCaptionInfoDestinationSettings(RtmpCaptionInfoDestinationSettingsProperty.builder().build())
.scte20PlusEmbeddedDestinationSettings(Scte20PlusEmbeddedDestinationSettingsProperty.builder().build())
.scte27DestinationSettings(Scte27DestinationSettingsProperty.builder().build())
.smpteTtDestinationSettings(SmpteTtDestinationSettingsProperty.builder().build())
.teletextDestinationSettings(TeletextDestinationSettingsProperty.builder().build())
.ttmlDestinationSettings(TtmlDestinationSettingsProperty.builder()
.position(TextCaptionPositionSettingsProperty.builder()
.yPositionPercentage(123)
.build())
.styleControl("styleControl")
.build())
.webvttDestinationSettings(WebvttDestinationSettingsProperty.builder()
.position(TextCaptionPositionSettingsProperty.builder()
.yPositionPercentage(123)
.build())
.styleControl("styleControl")
.build())
.build())
.dvbDashAccessibility("dvbDashAccessibility")
.languageCode("languageCode")
.languageDescription("languageDescription")
.name("name")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive;
var captionDescriptionProperty = new CaptionDescriptionProperty {
Accessibility = "accessibility",
CaptionDashRoles = new [] { "captionDashRoles" },
CaptionSelectorName = "captionSelectorName",
DestinationSettings = new CaptionDestinationSettingsProperty {
AribDestinationSettings = new AribDestinationSettingsProperty { },
BurnInDestinationSettings = new BurnInDestinationSettingsProperty {
Alignment = "alignment",
BackgroundColor = "backgroundColor",
BackgroundOpacity = 123,
Font = new InputLocationProperty {
PasswordParam = "passwordParam",
Uri = "uri",
Username = "username"
},
FontColor = "fontColor",
FontOpacity = 123,
FontResolution = 123,
FontSize = "fontSize",
OutlineColor = "outlineColor",
OutlineSize = 123,
ShadowColor = "shadowColor",
ShadowOpacity = 123,
ShadowXOffset = 123,
ShadowYOffset = 123,
SubtitleRows = "subtitleRows",
TeletextGridControl = "teletextGridControl",
XPosition = 123,
YPosition = 123
},
DvbSubDestinationSettings = new DvbSubDestinationSettingsProperty {
Alignment = "alignment",
BackgroundColor = "backgroundColor",
BackgroundOpacity = 123,
Font = new InputLocationProperty {
PasswordParam = "passwordParam",
Uri = "uri",
Username = "username"
},
FontColor = "fontColor",
FontOpacity = 123,
FontResolution = 123,
FontSize = "fontSize",
OutlineColor = "outlineColor",
OutlineSize = 123,
ShadowColor = "shadowColor",
ShadowOpacity = 123,
ShadowXOffset = 123,
ShadowYOffset = 123,
SubtitleRows = "subtitleRows",
TeletextGridControl = "teletextGridControl",
XPosition = 123,
YPosition = 123
},
EbuTtDDestinationSettings = new EbuTtDDestinationSettingsProperty {
CopyrightHolder = "copyrightHolder",
DefaultFontSize = 123,
DefaultLineHeight = 123,
FillLineGap = "fillLineGap",
FontFamily = "fontFamily",
StyleControl = "styleControl"
},
EmbeddedDestinationSettings = new EmbeddedDestinationSettingsProperty {
Position = new EmbeddedCaptionPositionSettingsProperty {
YPositionLine = 123
},
StyleControl = "styleControl"
},
EmbeddedPlusScte20DestinationSettings = new EmbeddedPlusScte20DestinationSettingsProperty { },
RtmpCaptionInfoDestinationSettings = new RtmpCaptionInfoDestinationSettingsProperty { },
Scte20PlusEmbeddedDestinationSettings = new Scte20PlusEmbeddedDestinationSettingsProperty { },
Scte27DestinationSettings = new Scte27DestinationSettingsProperty { },
SmpteTtDestinationSettings = new SmpteTtDestinationSettingsProperty { },
TeletextDestinationSettings = new TeletextDestinationSettingsProperty { },
TtmlDestinationSettings = new TtmlDestinationSettingsProperty {
Position = new TextCaptionPositionSettingsProperty {
YPositionPercentage = 123
},
StyleControl = "styleControl"
},
WebvttDestinationSettings = new WebvttDestinationSettingsProperty {
Position = new TextCaptionPositionSettingsProperty {
YPositionPercentage = 123
},
StyleControl = "styleControl"
}
},
DvbDashAccessibility = "dvbDashAccessibility",
LanguageCode = "languageCode",
LanguageDescription = "languageDescription",
Name = "name"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
captionDescriptionProperty := &CaptionDescriptionProperty{
Accessibility: jsii.String("accessibility"),
CaptionDashRoles: []*string{
jsii.String("captionDashRoles"),
},
CaptionSelectorName: jsii.String("captionSelectorName"),
DestinationSettings: &CaptionDestinationSettingsProperty{
AribDestinationSettings: &AribDestinationSettingsProperty{
},
BurnInDestinationSettings: &BurnInDestinationSettingsProperty{
Alignment: jsii.String("alignment"),
BackgroundColor: jsii.String("backgroundColor"),
BackgroundOpacity: jsii.Number(123),
Font: &InputLocationProperty{
PasswordParam: jsii.String("passwordParam"),
Uri: jsii.String("uri"),
Username: jsii.String("username"),
},
FontColor: jsii.String("fontColor"),
FontOpacity: jsii.Number(123),
FontResolution: jsii.Number(123),
FontSize: jsii.String("fontSize"),
OutlineColor: jsii.String("outlineColor"),
OutlineSize: jsii.Number(123),
ShadowColor: jsii.String("shadowColor"),
ShadowOpacity: jsii.Number(123),
ShadowXOffset: jsii.Number(123),
ShadowYOffset: jsii.Number(123),
SubtitleRows: jsii.String("subtitleRows"),
TeletextGridControl: jsii.String("teletextGridControl"),
XPosition: jsii.Number(123),
YPosition: jsii.Number(123),
},
DvbSubDestinationSettings: &DvbSubDestinationSettingsProperty{
Alignment: jsii.String("alignment"),
BackgroundColor: jsii.String("backgroundColor"),
BackgroundOpacity: jsii.Number(123),
Font: &InputLocationProperty{
PasswordParam: jsii.String("passwordParam"),
Uri: jsii.String("uri"),
Username: jsii.String("username"),
},
FontColor: jsii.String("fontColor"),
FontOpacity: jsii.Number(123),
FontResolution: jsii.Number(123),
FontSize: jsii.String("fontSize"),
OutlineColor: jsii.String("outlineColor"),
OutlineSize: jsii.Number(123),
ShadowColor: jsii.String("shadowColor"),
ShadowOpacity: jsii.Number(123),
ShadowXOffset: jsii.Number(123),
ShadowYOffset: jsii.Number(123),
SubtitleRows: jsii.String("subtitleRows"),
TeletextGridControl: jsii.String("teletextGridControl"),
XPosition: jsii.Number(123),
YPosition: jsii.Number(123),
},
EbuTtDDestinationSettings: &EbuTtDDestinationSettingsProperty{
CopyrightHolder: jsii.String("copyrightHolder"),
DefaultFontSize: jsii.Number(123),
DefaultLineHeight: jsii.Number(123),
FillLineGap: jsii.String("fillLineGap"),
FontFamily: jsii.String("fontFamily"),
StyleControl: jsii.String("styleControl"),
},
EmbeddedDestinationSettings: &EmbeddedDestinationSettingsProperty{
Position: &EmbeddedCaptionPositionSettingsProperty{
YPositionLine: jsii.Number(123),
},
StyleControl: jsii.String("styleControl"),
},
EmbeddedPlusScte20DestinationSettings: &EmbeddedPlusScte20DestinationSettingsProperty{
},
RtmpCaptionInfoDestinationSettings: &RtmpCaptionInfoDestinationSettingsProperty{
},
Scte20PlusEmbeddedDestinationSettings: &Scte20PlusEmbeddedDestinationSettingsProperty{
},
Scte27DestinationSettings: &Scte27DestinationSettingsProperty{
},
SmpteTtDestinationSettings: &SmpteTtDestinationSettingsProperty{
},
TeletextDestinationSettings: &TeletextDestinationSettingsProperty{
},
TtmlDestinationSettings: &TtmlDestinationSettingsProperty{
Position: &TextCaptionPositionSettingsProperty{
YPositionPercentage: jsii.Number(123),
},
StyleControl: jsii.String("styleControl"),
},
WebvttDestinationSettings: &WebvttDestinationSettingsProperty{
Position: &TextCaptionPositionSettingsProperty{
YPositionPercentage: jsii.Number(123),
},
StyleControl: jsii.String("styleControl"),
},
},
DvbDashAccessibility: jsii.String("dvbDashAccessibility"),
LanguageCode: jsii.String("languageCode"),
LanguageDescription: jsii.String("languageDescription"),
Name: jsii.String("name"),
}
Properties
accessibilityoptionalstringaccessibilityoptionalstraccessibilityoptionalStringAccessibilityoptionalstringAccessibilityoptional*string #captionDashRolesoptionalstring[]caption_dash_rolesoptionaltyping.List[str]captionDashRolesoptionalList<String>CaptionDashRolesoptionalstring[]CaptionDashRolesoptional*[]*string #captionSelectorNameoptionalstringcaption_selector_nameoptionalstrcaptionSelectorNameoptionalStringCaptionSelectorNameoptionalstringCaptionSelectorNameoptional*string #Specifies which input captions selector to use as a captions source when generating output captions.
This field should match a captionSelector name.
destinationSettingsoptionalIResolvable | CfnChannel.destination_settingsoptionaltyping.Union[IResolvable, CaptionDestinationSettingsProperty]destinationSettingsoptionalIResolvableDestinationSettingsoptionalIResolvableDestinationSettingsoptionalinterface{} #Additional settings for a captions destination that depend on the destination type.
dvbDashAccessibilityoptionalstringdvb_dash_accessibilityoptionalstrdvbDashAccessibilityoptionalStringDvbDashAccessibilityoptionalstringDvbDashAccessibilityoptional*string #languageCodeoptionalstringlanguage_codeoptionalstrlanguageCodeoptionalStringLanguageCodeoptionalstringLanguageCodeoptional*string #An ISO 639-2 three-digit code.
For more information, see http://www.loc.gov/standards/iso639-2/.
languageDescriptionoptionalstringlanguage_descriptionoptionalstrlanguageDescriptionoptionalStringLanguageDescriptionoptionalstringLanguageDescriptionoptional*string #Human-readable information to indicate the captions that are available for players (for example, English or Spanish).
The name of the captions description.
The name is used to associate a captions description with an output. Names must be unique within a channel.