Class: Google::Apis::TranscoderV1::TextStream

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextStream

Returns a new instance of TextStream.



1801
1802
1803
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1801

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codecString

The codec for this text stream. The default is webvtt. Supported text codecs:

  • srt - ttml - cea608 - cea708 - webvtt Corresponds to the JSON property codec

Returns:

  • (String)


1794
1795
1796
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1794

def codec
  @codec
end

#mappingArray<Google::Apis::TranscoderV1::TextMapping>

The mapping for the Job.edit_list atoms with text EditAtom.inputs. Corresponds to the JSON property mapping



1799
1800
1801
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1799

def mapping
  @mapping
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1806
1807
1808
1809
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1806

def update!(**args)
  @codec = args[:codec] if args.key?(:codec)
  @mapping = args[:mapping] if args.key?(:mapping)
end