Class: Google::Apis::TranscoderV1::TextStream
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::TextStream
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb
Overview
Encoding of a text stream. For example, closed captions or subtitles.
Instance Attribute Summary collapse
-
#codec ⇒ String
The codec for this text stream.
-
#display_name ⇒ String
The name for this particular text stream that will be added to the HLS/DASH manifest.
-
#language_code ⇒ String
The BCP-47 language code, such as
en-US
orsr-Latn
. -
#mapping ⇒ Array<Google::Apis::TranscoderV1::TextMapping>
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextStream
constructor
A new instance of TextStream.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextStream
Returns a new instance of TextStream.
2211 2212 2213 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#codec ⇒ String
The codec for this text stream. The default is webvtt
. Supported text codecs:
srt
-ttml
-cea608
-cea708
-webvtt
Corresponds to the JSON propertycodec
2191 2192 2193 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2191 def codec @codec end |
#display_name ⇒ String
The name for this particular text stream that will be added to the HLS/DASH
manifest. Not supported in MP4 files.
Corresponds to the JSON property displayName
2197 2198 2199 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2197 def display_name @display_name end |
#language_code ⇒ String
The BCP-47 language code, such as en-US
or sr-Latn
. For more information,
see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not
supported in MP4 files.
Corresponds to the JSON property languageCode
2204 2205 2206 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2204 def language_code @language_code end |
#mapping ⇒ Array<Google::Apis::TranscoderV1::TextMapping>
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
Corresponds to the JSON property mapping
2209 2210 2211 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2209 def mapping @mapping end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2216 2217 2218 2219 2220 2221 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2216 def update!(**args) @codec = args[:codec] if args.key?(:codec) @display_name = args[:display_name] if args.key?(:display_name) @language_code = args[:language_code] if args.key?(:language_code) @mapping = args[:mapping] if args.key?(:mapping) end |