Class: AWSCDK::MediaLive::CfnChannel::Scte27SourceSettingsProperty

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

Overview

Information about the SCTE-27 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) ⇒ Scte27SourceSettingsProperty

Returns a new instance of Scte27SourceSettingsProperty.

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)

    The PID field is used in conjunction with the captions selector languageCode field as follows: Specify PID and Language: Extracts captions from that PID;



12921
12922
12923
12924
12925
12926
# File 'media_live/cfn_channel.rb', line 12921

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.



12932
12933
12934
# File 'media_live/cfn_channel.rb', line 12932

def ocr_language
  @ocr_language
end

#pidNumeric? (readonly)

The PID field is used in conjunction with the captions selector languageCode field as follows: Specify PID and Language: Extracts captions from that PID;

the language is "informational." Specify PID and omit Language: Extracts the specified PID. Omit PID and specify Language: Extracts the specified language, whichever PID that happens to be. Omit PID and omit Language: Valid only if source is DVB-Sub that is being passed through; all languages are passed through.



12939
12940
12941
# File 'media_live/cfn_channel.rb', line 12939

def pid
  @pid
end

Class Method Details

.jsii_propertiesObject



12941
12942
12943
12944
12945
12946
# File 'media_live/cfn_channel.rb', line 12941

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

Instance Method Details

#to_jsiiObject



12948
12949
12950
12951
12952
12953
12954
12955
# File 'media_live/cfn_channel.rb', line 12948

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