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.
-
#mapping ⇒ Array<Google::Apis::TranscoderV1::TextMapping>
The mapping for the
Job.edit_listatoms with textEditAtom.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.
1676 1677 1678 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1676 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-webvttCorresponds to the JSON propertycodec
1669 1670 1671 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1669 def codec @codec end |
#mapping ⇒ Array<Google::Apis::TranscoderV1::TextMapping>
The mapping for the Job.edit_list atoms with text EditAtom.inputs.
Corresponds to the JSON property mapping
1674 1675 1676 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1674 def mapping @mapping end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1681 1682 1683 1684 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1681 def update!(**args) @codec = args[:codec] if args.key?(:codec) @mapping = args[:mapping] if args.key?(:mapping) end |