InputLossBehavior
- class aws_cdk.aws_medialive_alpha.InputLossBehavior(*, black_frame=None, image_color=None, image_slate=None, image_type=None, repeat_frame=None)
Bases:
object(experimental) Behavior on input loss: substitute black, optionally repeat the last frame, then show a solid color or a slate image.
- Parameters:
black_frame (
Optional[Duration]) – (experimental) How long to substitute black before showing the input-loss image (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite). Default: - service defaultimage_color (
Optional[str]) – (experimental) The image color as 6 hex characters (RGB). Used when InputLossImageType.COLOR. Default: - service defaultimage_slate (
Optional[FileLocation]) – (experimental) The slate image to display. Used whenimageTypeis SLATE. Provide aFileLocationreferencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or a URL (FileLocation.url). Default: - service defaultimage_type (
Optional[InputLossImageType]) – (experimental) Whether to substitute a solid color or a slate image after the black period. Default: - service defaultrepeat_frame (
Optional[Duration]) – (experimental) How long to repeat the previous picture before substituting black (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite). Default: - service default
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# slate_bucket: s3.IBucket input_loss = medialive.InputLossBehavior( black_frame=Duration.seconds(1), repeat_frame=Duration.seconds(5), image_type=medialive.InputLossImageType.SLATE, image_slate=medialive.FileLocation.from_bucket(slate_bucket, "slates/offline.png") )
Attributes
- black_frame
(experimental) How long to substitute black before showing the input-loss image (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).
- Default:
service default
- Stability:
experimental
- image_color
(experimental) The image color as 6 hex characters (RGB).
Used when InputLossImageType.COLOR.
- Default:
service default
- Stability:
experimental
- image_slate
(experimental) The slate image to display.
Used when
imageTypeis SLATE. Provide aFileLocationreferencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or a URL (FileLocation.url).- Default:
service default
- Stability:
experimental
- image_type
(experimental) Whether to substitute a solid color or a slate image after the black period.
- Default:
service default
- Stability:
experimental
- repeat_frame
(experimental) How long to repeat the previous picture before substituting black (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).
- Default:
service default
- Stability:
experimental