Class: Google::Apis::TranscoderV1beta1::TextStream

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/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.



1561
1562
1563
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1561

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)


1547
1548
1549
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1547

def codec
  @codec
end

#language_codeString

Required. 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. Corresponds to the JSON property languageCode

Returns:

  • (String)


1554
1555
1556
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1554

def language_code
  @language_code
end

#mappingArray<Google::Apis::TranscoderV1beta1::TextAtom>

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



1559
1560
1561
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1559

def mapping
  @mapping
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1566
1567
1568
1569
1570
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1566

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