HlsInputSettings

class aws_cdk.aws_medialive_alpha.HlsInputSettings(*, bandwidth=None, buffer_segments=None, retries=None, retry_interval=None, scte35_source=None)

Bases: object

(experimental) HLS input settings for URL pull inputs.

Parameters:
  • bandwidth (Optional[Bitrate]) – (experimental) The bandwidth to select from the HLS manifest. MediaLive chooses the rendition whose manifest bandwidth most closely matches this value. Default: - highest bandwidth

  • buffer_segments (Union[int, float, None]) – (experimental) When specified, reading of the HLS input begins this many buffer segments from the end (most recently written segment). Default: - the HLS input begins with the first segment specified in the m3u8

  • retries (Union[int, float, None]) – (experimental) Number of consecutive read failures before the input is considered unavailable. Default: - service default

  • retry_interval (Optional[Duration]) – (experimental) The interval between retry attempts. Default: - service default

  • scte35_source (Optional[HlsScte35Source]) – (experimental) The source MediaLive ingests SCTE-35 messages from — the content segments or the manifest. Default: - service default

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,
        network_input_settings=medialive.NetworkInputSettings(
            server_validation=medialive.ServerValidation.CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME,
            hls_input_settings=medialive.HlsInputSettings(
                bandwidth=Bitrate.mbps(5),
                scte35_source=medialive.HlsScte35Source.MANIFEST
            )
        ),
        logical_interface_names=["eth0", "eth1"]
    )],
    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

bandwidth

(experimental) The bandwidth to select from the HLS manifest.

MediaLive chooses the rendition whose manifest bandwidth most closely matches this value.

Default:
  • highest bandwidth

Stability:

experimental

buffer_segments

(experimental) When specified, reading of the HLS input begins this many buffer segments from the end (most recently written segment).

Default:
  • the HLS input begins with the first segment specified in the m3u8

Stability:

experimental

retries

(experimental) Number of consecutive read failures before the input is considered unavailable.

Default:
  • service default

Stability:

experimental

retry_interval

(experimental) The interval between retry attempts.

Default:
  • service default

Stability:

experimental

scte35_source

(experimental) The source MediaLive ingests SCTE-35 messages from — the content segments or the manifest.

Default:
  • service default

Stability:

experimental