Class: AWSCDK::MediaLive::CfnChannel::HlsInputSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::HlsInputSettingsProperty
- 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
-
#bandwidth ⇒ Numeric?
readonly
When specified, the HLS stream with the m3u8 bandwidth that most closely matches this value is chosen.
-
#buffer_segments ⇒ Numeric?
readonly
When specified, reading of the HLS input begins this many buffer segments from the end (most recently written segment).
-
#retries ⇒ Numeric?
readonly
The number of consecutive times that attempts to read a manifest or segment must fail before the input is considered unavailable.
-
#retry_interval ⇒ Numeric?
readonly
The number of seconds between retries when an attempt to read a manifest or segment fails.
-
#scte35_source ⇒ String?
readonly
Identifies the source for the SCTE-35 messages that MediaLive will ingest.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bandwidth: nil, buffer_segments: nil, retries: nil, retry_interval: nil, scte35_source: nil) ⇒ HlsInputSettingsProperty
constructor
A new instance of HlsInputSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bandwidth: nil, buffer_segments: nil, retries: nil, retry_interval: nil, scte35_source: nil) ⇒ HlsInputSettingsProperty
Returns a new instance of HlsInputSettingsProperty.
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
#bandwidth ⇒ Numeric? (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_segments ⇒ Numeric? (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 |
#retries ⇒ Numeric? (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_interval ⇒ Numeric? (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_source ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |