interface CaptionRectangle
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.CaptionRectangle |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#CaptionRectangle |
Java | software.amazon.awscdk.services.medialive.alpha.CaptionRectangle |
Python | aws_cdk.aws_medialive_alpha.CaptionRectangle |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป CaptionRectangle |
A display rectangle, expressed as percentages of the underlying video frame, for captions converted to EBU-TT-D or TTML.
Example
// 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
| Name | Type | Description |
|---|---|---|
| height | number | Height of the rectangle, as a percentage of the frame height (0โ100). |
| left | number | Left edge position, as a percentage of the frame width (0โ100). |
| top | number | Top edge position, as a percentage of the frame height (0โ100). |
| width | number | Width of the rectangle, as a percentage of the frame width (0โ100). |
height
Type:
number
Height of the rectangle, as a percentage of the frame height (0โ100).
leftOffset
Type:
number
Left edge position, as a percentage of the frame width (0โ100).
topOffset
Type:
number
Top edge position, as a percentage of the frame height (0โ100).
width
Type:
number
Width of the rectangle, as a percentage of the frame width (0โ100).

.NET
Go
Java
Python
TypeScript (