Class: AWSCDK::MediaLive::CfnChannel::AudioSilenceFailoverSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(audio_selector_name: nil, audio_silence_threshold_msec: nil) ⇒ AudioSilenceFailoverSettingsProperty

Returns a new instance of AudioSilenceFailoverSettingsProperty.

Parameters:

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

    The name of the audio selector in the input that MediaLive should monitor to detect silence.

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

    The amount of time (in milliseconds) that the active input must be silent before automatic input failover occurs.



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_nameString? (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_msecNumeric? (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_propertiesObject



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_jsiiObject



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