Class: AWSCDK::MediaLive::CfnChannel::AudioSelectorSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::AudioSelectorSettingsProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
Information about the audio to extract from the input.
The parent of this entity is AudioSelector.
Instance Attribute Summary collapse
-
#audio_hls_rendition_selection ⇒ AWSCDK::IResolvable, ...
readonly
Selector for HLS audio rendition.
-
#audio_language_selection ⇒ AWSCDK::IResolvable, ...
readonly
The language code of the audio to select.
-
#audio_pid_selection ⇒ AWSCDK::IResolvable, ...
readonly
The PID of the audio to select.
-
#audio_track_selection ⇒ AWSCDK::IResolvable, ...
readonly
Information about the audio track to extract.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(audio_hls_rendition_selection: nil, audio_language_selection: nil, audio_pid_selection: nil, audio_track_selection: nil) ⇒ AudioSelectorSettingsProperty
constructor
A new instance of AudioSelectorSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(audio_hls_rendition_selection: nil, audio_language_selection: nil, audio_pid_selection: nil, audio_track_selection: nil) ⇒ AudioSelectorSettingsProperty
Returns a new instance of AudioSelectorSettingsProperty.
2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 |
# File 'media_live/cfn_channel.rb', line 2194 def initialize(audio_hls_rendition_selection: nil, audio_language_selection: nil, audio_pid_selection: nil, audio_track_selection: nil) @audio_hls_rendition_selection = audio_hls_rendition_selection.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::AudioHlsRenditionSelectionProperty.new(**audio_hls_rendition_selection.transform_keys(&:to_sym)) : audio_hls_rendition_selection Jsii::Type.check_type(@audio_hls_rendition_selection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BdWRpb0hsc1JlbmRpdGlvblNlbGVjdGlvblByb3BlcnR5In1dfX0=")), "audioHlsRenditionSelection") unless @audio_hls_rendition_selection.nil? @audio_language_selection = audio_language_selection.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::AudioLanguageSelectionProperty.new(**audio_language_selection.transform_keys(&:to_sym)) : audio_language_selection Jsii::Type.check_type(@audio_language_selection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BdWRpb0xhbmd1YWdlU2VsZWN0aW9uUHJvcGVydHkifV19fQ==")), "audioLanguageSelection") unless @audio_language_selection.nil? @audio_pid_selection = audio_pid_selection.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::AudioPidSelectionProperty.new(**audio_pid_selection.transform_keys(&:to_sym)) : audio_pid_selection Jsii::Type.check_type(@audio_pid_selection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BdWRpb1BpZFNlbGVjdGlvblByb3BlcnR5In1dfX0=")), "audioPidSelection") unless @audio_pid_selection.nil? @audio_track_selection = audio_track_selection.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::AudioTrackSelectionProperty.new(**audio_track_selection.transform_keys(&:to_sym)) : audio_track_selection Jsii::Type.check_type(@audio_track_selection, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BdWRpb1RyYWNrU2VsZWN0aW9uUHJvcGVydHkifV19fQ==")), "audioTrackSelection") unless @audio_track_selection.nil? end |
Instance Attribute Details
#audio_hls_rendition_selection ⇒ AWSCDK::IResolvable, ... (readonly)
Selector for HLS audio rendition.
2209 2210 2211 |
# File 'media_live/cfn_channel.rb', line 2209 def audio_hls_rendition_selection @audio_hls_rendition_selection end |
#audio_language_selection ⇒ AWSCDK::IResolvable, ... (readonly)
The language code of the audio to select.
2214 2215 2216 |
# File 'media_live/cfn_channel.rb', line 2214 def audio_language_selection @audio_language_selection end |
#audio_pid_selection ⇒ AWSCDK::IResolvable, ... (readonly)
The PID of the audio to select.
2219 2220 2221 |
# File 'media_live/cfn_channel.rb', line 2219 def audio_pid_selection @audio_pid_selection end |
#audio_track_selection ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the audio track to extract.
2224 2225 2226 |
# File 'media_live/cfn_channel.rb', line 2224 def audio_track_selection @audio_track_selection end |
Class Method Details
.jsii_properties ⇒ Object
2226 2227 2228 2229 2230 2231 2232 2233 |
# File 'media_live/cfn_channel.rb', line 2226 def self.jsii_properties { :audio_hls_rendition_selection => "audioHlsRenditionSelection", :audio_language_selection => "audioLanguageSelection", :audio_pid_selection => "audioPidSelection", :audio_track_selection => "audioTrackSelection", } end |
Instance Method Details
#to_jsii ⇒ Object
2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 |
# File 'media_live/cfn_channel.rb', line 2235 def to_jsii result = {} result.merge!({ "audioHlsRenditionSelection" => @audio_hls_rendition_selection, "audioLanguageSelection" => @audio_language_selection, "audioPidSelection" => @audio_pid_selection, "audioTrackSelection" => @audio_track_selection, }) result.compact end |