Class: AWSCDK::MediaLive::CfnChannel::DvbSubSourceSettingsProperty

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

Overview

Information about the DVB Sub captions to extract from the input.

The parent of this entity is CaptionSelectorSettings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ocr_language: nil, pid: nil) ⇒ DvbSubSourceSettingsProperty

Returns a new instance of DvbSubSourceSettingsProperty.

Parameters:

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

    If you will configure a WebVTT caption description that references this caption selector, use this field to provide the language to consider when translating the image-based source to text.

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

    When using DVB-Sub with burn-in or SMPTE-TT, use this PID for the source content.



4619
4620
4621
4622
4623
4624
# File 'media_live/cfn_channel.rb', line 4619

def initialize(ocr_language: nil, pid: nil)
  @ocr_language = ocr_language
  Jsii::Type.check_type(@ocr_language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ocrLanguage") unless @ocr_language.nil?
  @pid = pid
  Jsii::Type.check_type(@pid, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "pid") unless @pid.nil?
end

Instance Attribute Details

#ocr_languageString? (readonly)

If you will configure a WebVTT caption description that references this caption selector, use this field to provide the language to consider when translating the image-based source to text.



4630
4631
4632
# File 'media_live/cfn_channel.rb', line 4630

def ocr_language
  @ocr_language
end

#pidNumeric? (readonly)

When using DVB-Sub with burn-in or SMPTE-TT, use this PID for the source content.

It is unused for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of selectors.



4637
4638
4639
# File 'media_live/cfn_channel.rb', line 4637

def pid
  @pid
end

Class Method Details

.jsii_propertiesObject



4639
4640
4641
4642
4643
4644
# File 'media_live/cfn_channel.rb', line 4639

def self.jsii_properties
  {
    :ocr_language => "ocrLanguage",
    :pid => "pid",
  }
end

Instance Method Details

#to_jsiiObject



4646
4647
4648
4649
4650
4651
4652
4653
# File 'media_live/cfn_channel.rb', line 4646

def to_jsii
  result = {}
  result.merge!({
    "ocrLanguage" => @ocr_language,
    "pid" => @pid,
  })
  result.compact
end