Class: AWSCDK::MediaLive::CfnChannel::AudioLanguageSelectionProperty

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

Overview

Information about the audio language to extract.

The parent of this entity is AudioSelectorSettings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(language_code: nil, language_selection_policy: nil) ⇒ AudioLanguageSelectionProperty

Returns a new instance of AudioLanguageSelectionProperty.

Parameters:

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

    Selects a specific three-letter language code from within an audio source.

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

    When set to "strict," the transport stream demux strictly identifies audio streams by their language descriptor.



1813
1814
1815
1816
1817
1818
# File 'media_live/cfn_channel.rb', line 1813

def initialize(language_code: nil, language_selection_policy: nil)
  @language_code = language_code
  Jsii::Type.check_type(@language_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "languageCode") unless @language_code.nil?
  @language_selection_policy = language_selection_policy
  Jsii::Type.check_type(@language_selection_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "languageSelectionPolicy") unless @language_selection_policy.nil?
end

Instance Attribute Details

#language_codeString? (readonly)

Selects a specific three-letter language code from within an audio source.



1824
1825
1826
# File 'media_live/cfn_channel.rb', line 1824

def language_code
  @language_code
end

#language_selection_policyString? (readonly)

When set to "strict," the transport stream demux strictly identifies audio streams by their language descriptor.

If a PMT update occurs such that an audio stream matching the initially selected language is no longer present, then mute is encoded until the language returns. If set to "loose," then on a PMT update the demux chooses another audio stream in the program with the same stream type if it can't find one with the same language.



1831
1832
1833
# File 'media_live/cfn_channel.rb', line 1831

def language_selection_policy
  @language_selection_policy
end

Class Method Details

.jsii_propertiesObject



1833
1834
1835
1836
1837
1838
# File 'media_live/cfn_channel.rb', line 1833

def self.jsii_properties
  {
    :language_code => "languageCode",
    :language_selection_policy => "languageSelectionPolicy",
  }
end

Instance Method Details

#to_jsiiObject



1840
1841
1842
1843
1844
1845
1846
1847
# File 'media_live/cfn_channel.rb', line 1840

def to_jsii
  result = {}
  result.merge!({
    "languageCode" => @language_code,
    "languageSelectionPolicy" => @language_selection_policy,
  })
  result.compact
end