AvailBlanking

class aws_cdk.aws_medialive_alpha.AvailBlanking(*, image=None, state=None)

Bases: object

(experimental) Settings for blanking video, audio, and captions during ad avails.

Parameters:
  • image (Optional[FileLocation]) – (experimental) A blanking image to display during ad avails. Provide a FileLocation referencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or a URL (FileLocation.url). Only .bmp and .png images are supported. If not set, solid black is used. Default: - solid black

  • state (Optional[AvailBlankingState]) – (experimental) Whether to blank the output during ad avails. Default: - ENABLED if image is provided, DISABLED otherwise

Stability:

experimental

ExampleMetadata:

infused

Example:

# stack: Stack
# input: medialive.IInput
# bucket: s3.IBucket
# video: medialive.EncodeConfiguration


medialive.Channel(stack, "Channel",
    inputs=[medialive.InputAttachment(input=input)],
    avail_blanking=medialive.AvailBlanking(
        state=medialive.AvailBlankingState.ENABLED,
        image=medialive.FileLocation.from_bucket(bucket, "slates/avail.png")
    ),
    blackout_slate=medialive.BlackoutSlate(
        state=medialive.BlackoutSlateState.ENABLED,
        image=medialive.FileLocation.from_bucket(bucket, "slates/blackout.png")
    ),
    output_groups=[
        medialive.OutputGroupConfiguration.hls(
            name="hls",
            destinations=[medialive.OutputDestination.to_bucket(bucket, "live/stream")],
            outputs=[medialive.HlsOutputDefinition(encodes=[video], output_name="hls_out")]
        )
    ]
)

Attributes

image

(experimental) A blanking image to display during ad avails.

Provide a FileLocation referencing an S3 bucket (FileLocation.fromBucket, which auto-grants read access) or a URL (FileLocation.url). Only .bmp and .png images are supported. If not set, solid black is used.

Default:
  • solid black

Stability:

experimental

state

(experimental) Whether to blank the output during ad avails.

Default:
  • ENABLED if image is provided, DISABLED otherwise

Stability:

experimental