Skip to content

Commit 3466124

Browse files
author
awstools
committed
feat(client-medialive): Adds defaultFontSize and defaultLineHeight as options in the EbuTtDDestinationSettings within the caption descriptions for an output stream.
1 parent f66d9c4 commit 3466124

File tree

11 files changed

+76
-17
lines changed

11 files changed

+76
-17
lines changed

clients/client-medialive/src/commands/CreateChannelCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
290290
* FillLineGap: "DISABLED" || "ENABLED",
291291
* FontFamily: "STRING_VALUE",
292292
* StyleControl: "EXCLUDE" || "INCLUDE",
293+
* DefaultFontSize: Number("int"),
294+
* DefaultLineHeight: Number("int"),
293295
* },
294296
* EmbeddedDestinationSettings: {},
295297
* EmbeddedPlusScte20DestinationSettings: {},
@@ -1491,6 +1493,8 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
14911493
* // FillLineGap: "DISABLED" || "ENABLED",
14921494
* // FontFamily: "STRING_VALUE",
14931495
* // StyleControl: "EXCLUDE" || "INCLUDE",
1496+
* // DefaultFontSize: Number("int"),
1497+
* // DefaultLineHeight: Number("int"),
14941498
* // },
14951499
* // EmbeddedDestinationSettings: {},
14961500
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/commands/DeleteChannelCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __Met
301301
* // FillLineGap: "DISABLED" || "ENABLED",
302302
* // FontFamily: "STRING_VALUE",
303303
* // StyleControl: "EXCLUDE" || "INCLUDE",
304+
* // DefaultFontSize: Number("int"),
305+
* // DefaultLineHeight: Number("int"),
304306
* // },
305307
* // EmbeddedDestinationSettings: {},
306308
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/commands/DescribeChannelCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
301301
* // FillLineGap: "DISABLED" || "ENABLED",
302302
* // FontFamily: "STRING_VALUE",
303303
* // StyleControl: "EXCLUDE" || "INCLUDE",
304+
* // DefaultFontSize: Number("int"),
305+
* // DefaultLineHeight: Number("int"),
304306
* // },
305307
* // EmbeddedDestinationSettings: {},
306308
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/commands/RestartChannelPipelinesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ export interface RestartChannelPipelinesCommandOutput extends RestartChannelPipe
304304
* // FillLineGap: "DISABLED" || "ENABLED",
305305
* // FontFamily: "STRING_VALUE",
306306
* // StyleControl: "EXCLUDE" || "INCLUDE",
307+
* // DefaultFontSize: Number("int"),
308+
* // DefaultLineHeight: Number("int"),
307309
* // },
308310
* // EmbeddedDestinationSettings: {},
309311
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/commands/StartChannelCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ export interface StartChannelCommandOutput extends StartChannelResponse, __Metad
301301
* // FillLineGap: "DISABLED" || "ENABLED",
302302
* // FontFamily: "STRING_VALUE",
303303
* // StyleControl: "EXCLUDE" || "INCLUDE",
304+
* // DefaultFontSize: Number("int"),
305+
* // DefaultLineHeight: Number("int"),
304306
* // },
305307
* // EmbeddedDestinationSettings: {},
306308
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/commands/StopChannelCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ export interface StopChannelCommandOutput extends StopChannelResponse, __Metadat
301301
* // FillLineGap: "DISABLED" || "ENABLED",
302302
* // FontFamily: "STRING_VALUE",
303303
* // StyleControl: "EXCLUDE" || "INCLUDE",
304+
* // DefaultFontSize: Number("int"),
305+
* // DefaultLineHeight: Number("int"),
304306
* // },
305307
* // EmbeddedDestinationSettings: {},
306308
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/commands/UpdateChannelClassCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ export interface UpdateChannelClassCommandOutput extends UpdateChannelClassRespo
334334
* // FillLineGap: "DISABLED" || "ENABLED",
335335
* // FontFamily: "STRING_VALUE",
336336
* // StyleControl: "EXCLUDE" || "INCLUDE",
337+
* // DefaultFontSize: Number("int"),
338+
* // DefaultLineHeight: Number("int"),
337339
* // },
338340
* // EmbeddedDestinationSettings: {},
339341
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/commands/UpdateChannelCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
290290
* FillLineGap: "DISABLED" || "ENABLED",
291291
* FontFamily: "STRING_VALUE",
292292
* StyleControl: "EXCLUDE" || "INCLUDE",
293+
* DefaultFontSize: Number("int"),
294+
* DefaultLineHeight: Number("int"),
293295
* },
294296
* EmbeddedDestinationSettings: {},
295297
* EmbeddedPlusScte20DestinationSettings: {},
@@ -1478,6 +1480,8 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
14781480
* // FillLineGap: "DISABLED" || "ENABLED",
14791481
* // FontFamily: "STRING_VALUE",
14801482
* // StyleControl: "EXCLUDE" || "INCLUDE",
1483+
* // DefaultFontSize: Number("int"),
1484+
* // DefaultLineHeight: Number("int"),
14811485
* // },
14821486
* // EmbeddedDestinationSettings: {},
14831487
* // EmbeddedPlusScte20DestinationSettings: {},

clients/client-medialive/src/models/models_0.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,33 +2054,34 @@ export interface EbuTtDDestinationSettings {
20542054
CopyrightHolder?: string | undefined;
20552055

20562056
/**
2057-
* Specifies how to handle the gap between the lines (in multi-line captions).
2058-
*
2059-
* - enabled: Fill with the captions background color (as specified in the input captions).
2060-
* - disabled: Leave the gap unfilled.
2057+
* Specifies how to handle the gap between the lines (in multi-line captions). ENABLED: Fill with the captions background color (as specified in the input captions). DISABLED: Leave the gap unfilled
20612058
* @public
20622059
*/
20632060
FillLineGap?: EbuTtDFillLineGapControl | undefined;
20642061

20652062
/**
2066-
* Specifies the font family to include in the font data attached to the EBU-TT captions. Valid only if styleControl is set to include. If you leave this field empty, the font family is set to "monospaced". (If styleControl is set to exclude, the font family is always set to "monospaced".)
2067-
*
2068-
* You specify only the font family. All other style information (color, bold, position and so on) is copied from the input captions. The size is always set to 100% to allow the downstream player to choose the size.
2069-
*
2070-
* - Enter a list of font families, as a comma-separated list of font names, in order of preference. The name can be a font family (such as “Arial”), or a generic font family (such as “serif”), or “default” (to let the downstream player choose the font).
2071-
* - Leave blank to set the family to “monospace”.
2063+
* Specifies the font family to include in the font data attached to the EBU-TT captions. Valid only if style_control is set to include. (If style_control is set to exclude, the font family is always set to monospaced.) Enter a list of font families, as a comma-separated list of font names, in order of preference. The name can be a font family (such as Arial), or a generic font family (such as serif), or default (to let the downstream player choose the font). Or leave blank to set the family to monospace. Note that you can specify only the font family. All other style information (color, bold, position and so on) is copied from the input captions. The size is always set to 100% to allow the downstream player to choose the size.
20722064
* @public
20732065
*/
20742066
FontFamily?: string | undefined;
20752067

20762068
/**
2077-
* Specifies the style information (font color, font position, and so on) to include in the font data that is attached to the EBU-TT captions.
2078-
*
2079-
* - include: Take the style information (font color, font position, and so on) from the source captions and include that information in the font data attached to the EBU-TT captions. This option is valid only if the source captions are Embedded or Teletext.
2080-
* - exclude: In the font data attached to the EBU-TT captions, set the font family to "monospaced". Do not include any other style information.
2069+
* Specifies the style information to include in the font data that is attached to the EBU-TT captions. INCLUDE: Take the style information from the source captions and include that information in the font data attached to the EBU-TT captions. This option is valid only if the source captions are Embedded or Teletext. EXCLUDE: Set the font family to monospaced. Do not include any other style information.
20812070
* @public
20822071
*/
20832072
StyleControl?: EbuTtDDestinationStyleControl | undefined;
2073+
2074+
/**
2075+
* Specifies the default font size as a percentage of the computed cell size. Valid only if the defaultLineHeight is also set. If you leave this field empty, the default font size is 80% of the cell size.
2076+
* @public
2077+
*/
2078+
DefaultFontSize?: number | undefined;
2079+
2080+
/**
2081+
* Documentation update needed
2082+
* @public
2083+
*/
2084+
DefaultLineHeight?: number | undefined;
20842085
}
20852086

20862087
/**

clients/client-medialive/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7443,6 +7443,8 @@ const se_Eac3Settings = (input: Eac3Settings, context: __SerdeContext): any => {
74437443
const se_EbuTtDDestinationSettings = (input: EbuTtDDestinationSettings, context: __SerdeContext): any => {
74447444
return take(input, {
74457445
copyrightHolder: [, , `CopyrightHolder`],
7446+
defaultFontSize: [, , `DefaultFontSize`],
7447+
defaultLineHeight: [, , `DefaultLineHeight`],
74467448
fillLineGap: [, , `FillLineGap`],
74477449
fontFamily: [, , `FontFamily`],
74487450
styleControl: [, , `StyleControl`],
@@ -11452,6 +11454,8 @@ const de_Eac3Settings = (output: any, context: __SerdeContext): Eac3Settings =>
1145211454
const de_EbuTtDDestinationSettings = (output: any, context: __SerdeContext): EbuTtDDestinationSettings => {
1145311455
return take(output, {
1145411456
CopyrightHolder: [, __expectString, `copyrightHolder`],
11457+
DefaultFontSize: [, __expectInt32, `defaultFontSize`],
11458+
DefaultLineHeight: [, __expectInt32, `defaultLineHeight`],
1145511459
FillLineGap: [, __expectString, `fillLineGap`],
1145611460
FontFamily: [, __expectString, `fontFamily`],
1145711461
StyleControl: [, __expectString, `styleControl`],

0 commit comments

Comments
 (0)