Skip to content
v2.274.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

CaptionRectangle Struct ​

A display rectangle, expressed as percentages of the underlying video frame, for captions converted to EBU-TT-D or TTML.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
const captionRectangle: medialive_alpha.CaptionRectangle = {
  height: 123,
  leftOffset: 123,
  topOffset: 123,
  width: 123,
};

Properties ​

heightnumberheightint | floatheightNumberHeightdoubleHeight*float64required#
Height of the rectangle, as a percentage of the frame height (0–100).
leftOffsetnumberleft_offsetint | floatleftOffsetNumberLeftOffsetdoubleLeftOffset*float64required#
Left edge position, as a percentage of the frame width (0–100).
topOffsetnumbertop_offsetint | floattopOffsetNumberTopOffsetdoubleTopOffset*float64required#
Top edge position, as a percentage of the frame height (0–100).
widthnumberwidthint | floatwidthNumberWidthdoubleWidth*float64required#
Width of the rectangle, as a percentage of the frame width (0–100).