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

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



1498
1499
1500
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1498

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)


1484
1485
1486
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1484

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)


1491
1492
1493
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1491

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



1496
1497
1498
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1496

def mapping
  @mapping
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1503
1504
1505
1506
1507
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1503

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