Skip to content
v2.275.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

HlsInputSettings Struct ​

HLS input settings for URL pull inputs.

Example ​

ts
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;

new medialive.Channel(stack, 'Channel', {
  inputs: [{
    input,
    networkInputSettings: {
      serverValidation: medialive.ServerValidation.CHECK_CRYPTOGRAPHY_AND_VALIDATE_NAME,
      hlsInputSettings: {
        bandwidth: Bitrate.mbps(5),
        scte35Source: medialive.HlsScte35Source.MANIFEST,
      },
    },
    logicalInterfaceNames: ['eth0', 'eth1'],
  }],
  outputGroups: [
    medialive.OutputGroupConfiguration.hls({
      name: 'hls',
      destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
      outputs: [{ encodes: [video], outputName: 'hls_out' }],
    }),
  ],
});

Properties ​

bandwidthoptionalBitratebandwidthoptionalBitratebandwidthoptionalBitrateBandwidthoptionalBitrateBandwidthoptionalBitrate#
The bandwidth to select from the HLS manifest.

Default: highest bandwidth

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

bufferSegmentsoptionalnumberbuffer_segmentsoptionalint | floatbufferSegmentsoptionalNumberBufferSegmentsoptionaldoubleBufferSegmentsoptional*float64#
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

retriesoptionalnumberretriesoptionalint | floatretriesoptionalNumberRetriesoptionaldoubleRetriesoptional*float64#
Number of consecutive read failures before the input is considered unavailable.

Default: service default

retryIntervaloptionalDurationretry_intervaloptionalDurationretryIntervaloptionalDurationRetryIntervaloptionalDurationRetryIntervaloptionalDuration#
The interval between retry attempts.

Default: service default

scte35SourceoptionalHlsScte35Sourcescte35_sourceoptionalHlsScte35Sourcescte35SourceoptionalHlsScte35SourceScte35SourceoptionalHlsScte35SourceScte35SourceoptionalHlsScte35Source#
The source MediaLive ingests SCTE-35 messages from — the content segments or the manifest.

Default: service default