interface InputLossBehavior
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.InputLossBehavior |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#InputLossBehavior |
Java | software.amazon.awscdk.services.medialive.alpha.InputLossBehavior |
Python | aws_cdk.aws_medialive_alpha.InputLossBehavior |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป InputLossBehavior |
Behavior on input loss: substitute black, optionally repeat the last frame, then show a solid color or a slate image.
Example
declare const slateBucket: s3.IBucket;
const inputLoss: medialive.InputLossBehavior = {
blackFrame: Duration.seconds(1),
repeatFrame: Duration.seconds(5),
imageType: medialive.InputLossImageType.SLATE,
imageSlate: medialive.FileLocation.fromBucket(slateBucket, 'slates/offline.png'),
};
Properties
| Name | Type | Description |
|---|---|---|
| black | Duration | How long to substitute black before showing the input-loss image (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite). |
| image | string | The image color as 6 hex characters (RGB). |
| image | File | The slate image to display. |
| image | Input | Whether to substitute a solid color or a slate image after the black period. |
| repeat | Duration | How long to repeat the previous picture before substituting black (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite). |
blackFrame?
Type:
Duration
(optional, default: service default)
How long to substitute black before showing the input-loss image (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).
imageColor?
Type:
string
(optional, default: service default)
The image color as 6 hex characters (RGB).
Used when InputLossImageType.COLOR.
imageSlate?
Type:
File
(optional, default: service default)
The slate image to display.
Used when imageType is SLATE. Provide a FileLocation
referencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or
a URL (FileLocation.url).
imageType?
Type:
Input
(optional, default: service default)
Whether to substitute a solid color or a slate image after the black period.
repeatFrame?
Type:
Duration
(optional, default: service default)
How long to repeat the previous picture before substituting black (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).

.NET
Go
Java
Python
TypeScript (