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.

InputLossBehavior Struct ​

Behavior on input loss: substitute black, optionally repeat the last frame, then show a solid color or a slate image.

Example ​

ts
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 ​

blackFrameDurationblack_frameDurationblackFrameDurationBlackFrameDurationBlackFrameDuration= 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).
imageColorstringimage_colorstrimageColorStringImageColorstringImageColor*string= service default#
The image color as 6 hex characters (RGB).

Used when InputLossImageType.COLOR.

imageSlateFileLocationimage_slateFileLocationimageSlateFileLocationImageSlateFileLocationImageSlateFileLocation= 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).

imageTypeInputLossImageTypeimage_typeInputLossImageTypeimageTypeInputLossImageTypeImageTypeInputLossImageTypeImageTypeInputLossImageType= service default#
Whether to substitute a solid color or a slate image after the black period.
repeatFrameDurationrepeat_frameDurationrepeatFrameDurationRepeatFrameDurationRepeatFrameDuration= service default#
How long to repeat the previous picture before substituting black (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).