Class: AWSCDK::MediaLive::CfnChannel::AudioSilenceFailoverSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::AudioSilenceFailoverSettingsProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
MediaLive will perform a failover if audio is not detected in this input for the specified period.
The parent of this entity is FailoverConditionSettings.
Instance Attribute Summary collapse
-
#audio_selector_name ⇒ String?
readonly
The name of the audio selector in the input that MediaLive should monitor to detect silence.
-
#audio_silence_threshold_msec ⇒ Numeric?
readonly
The amount of time (in milliseconds) that the active input must be silent before automatic input failover occurs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(audio_selector_name: nil, audio_silence_threshold_msec: nil) ⇒ AudioSilenceFailoverSettingsProperty
constructor
A new instance of AudioSilenceFailoverSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(audio_selector_name: nil, audio_silence_threshold_msec: nil) ⇒ AudioSilenceFailoverSettingsProperty
Returns a new instance of AudioSilenceFailoverSettingsProperty.
2257 2258 2259 2260 2261 2262 |
# File 'media_live/cfn_channel.rb', line 2257 def initialize(audio_selector_name: nil, audio_silence_threshold_msec: nil) @audio_selector_name = audio_selector_name Jsii::Type.check_type(@audio_selector_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "audioSelectorName") unless @audio_selector_name.nil? @audio_silence_threshold_msec = audio_silence_threshold_msec Jsii::Type.check_type(@audio_silence_threshold_msec, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "audioSilenceThresholdMsec") unless @audio_silence_threshold_msec.nil? end |
Instance Attribute Details
#audio_selector_name ⇒ String? (readonly)
The name of the audio selector in the input that MediaLive should monitor to detect silence.
Select your most important rendition. If you didn't create an audio selector in this input, leave blank.
2270 2271 2272 |
# File 'media_live/cfn_channel.rb', line 2270 def audio_selector_name @audio_selector_name end |
#audio_silence_threshold_msec ⇒ Numeric? (readonly)
The amount of time (in milliseconds) that the active input must be silent before automatic input failover occurs.
Silence is defined as audio loss or audio quieter than -50 dBFS.
2277 2278 2279 |
# File 'media_live/cfn_channel.rb', line 2277 def audio_silence_threshold_msec @audio_silence_threshold_msec end |
Class Method Details
.jsii_properties ⇒ Object
2279 2280 2281 2282 2283 2284 |
# File 'media_live/cfn_channel.rb', line 2279 def self.jsii_properties { :audio_selector_name => "audioSelectorName", :audio_silence_threshold_msec => "audioSilenceThresholdMsec", } end |
Instance Method Details
#to_jsii ⇒ Object
2286 2287 2288 2289 2290 2291 2292 2293 |
# File 'media_live/cfn_channel.rb', line 2286 def to_jsii result = {} result.merge!({ "audioSelectorName" => @audio_selector_name, "audioSilenceThresholdMsec" => @audio_silence_threshold_msec, }) result.compact end |