Class: AWSCDK::MediaLive::CfnChannel::HlsInputSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel.rb

Overview

Information about how to connect to the upstream system.

The parent of this entity is NetworkInputSettings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bandwidth: nil, buffer_segments: nil, retries: nil, retry_interval: nil, scte35_source: nil) ⇒ HlsInputSettingsProperty

Returns a new instance of HlsInputSettingsProperty.

Parameters:

  • bandwidth (Numeric, nil) (defaults to: nil)

    When specified, the HLS stream with the m3u8 bandwidth that most closely matches this value is chosen.

  • buffer_segments (Numeric, nil) (defaults to: nil)

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

  • retries (Numeric, nil) (defaults to: nil)

    The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable.

  • retry_interval (Numeric, nil) (defaults to: nil)

    The number of seconds between retries when an attempt to read a manifest or segment fails.

  • scte35_source (String, nil) (defaults to: nil)

    Identifies the source for the SCTE-35 messages that MediaLive will ingest.



8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
# File 'media_live/cfn_channel.rb', line 8096

def initialize(bandwidth: nil, buffer_segments: nil, retries: nil, retry_interval: nil, scte35_source: nil)
  @bandwidth = bandwidth
  Jsii::Type.check_type(@bandwidth, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bandwidth") unless @bandwidth.nil?
  @buffer_segments = buffer_segments
  Jsii::Type.check_type(@buffer_segments, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bufferSegments") unless @buffer_segments.nil?
  @retries = retries
  Jsii::Type.check_type(@retries, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "retries") unless @retries.nil?
  @retry_interval = retry_interval
  Jsii::Type.check_type(@retry_interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "retryInterval") unless @retry_interval.nil?
  @scte35_source = scte35_source
  Jsii::Type.check_type(@scte35_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scte35Source") unless @scte35_source.nil?
end

Instance Attribute Details

#bandwidthNumeric? (readonly)

When specified, the HLS stream with the m3u8 bandwidth that most closely matches this value is chosen.

Otherwise, the highest bandwidth stream in the m3u8 is chosen. The bitrate is specified in bits per second, as in an HLS manifest.



8115
8116
8117
# File 'media_live/cfn_channel.rb', line 8115

def bandwidth
  @bandwidth
end

#buffer_segmentsNumeric? (readonly)

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

When not specified, the HLS input begins with the first segment specified in the m3u8.



8122
8123
8124
# File 'media_live/cfn_channel.rb', line 8122

def buffer_segments
  @buffer_segments
end

#retriesNumeric? (readonly)

The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable.



8127
8128
8129
# File 'media_live/cfn_channel.rb', line 8127

def retries
  @retries
end

#retry_intervalNumeric? (readonly)

The number of seconds between retries when an attempt to read a manifest or segment fails.



8132
8133
8134
# File 'media_live/cfn_channel.rb', line 8132

def retry_interval
  @retry_interval
end

#scte35_sourceString? (readonly)

Identifies the source for the SCTE-35 messages that MediaLive will ingest.

Messages can be ingested from the content segments (in the stream) or from tags in the playlist (the HLS manifest). MediaLive ignores SCTE-35 information in the source that is not selected.



8139
8140
8141
# File 'media_live/cfn_channel.rb', line 8139

def scte35_source
  @scte35_source
end

Class Method Details

.jsii_propertiesObject



8141
8142
8143
8144
8145
8146
8147
8148
8149
# File 'media_live/cfn_channel.rb', line 8141

def self.jsii_properties
  {
    :bandwidth => "bandwidth",
    :buffer_segments => "bufferSegments",
    :retries => "retries",
    :retry_interval => "retryInterval",
    :scte35_source => "scte35Source",
  }
end

Instance Method Details

#to_jsiiObject



8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
# File 'media_live/cfn_channel.rb', line 8151

def to_jsii
  result = {}
  result.merge!({
    "bandwidth" => @bandwidth,
    "bufferSegments" => @buffer_segments,
    "retries" => @retries,
    "retryInterval" => @retry_interval,
    "scte35Source" => @scte35_source,
  })
  result.compact
end