Class: Google::Apis::TranscoderV1::ElementaryStream

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 an input file such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ElementaryStream

Returns a new instance of ElementaryStream.



669
670
671
# File 'lib/google/apis/transcoder_v1/classes.rb', line 669

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

Instance Attribute Details

#audio_streamGoogle::Apis::TranscoderV1::AudioStream

Audio stream resource. Corresponds to the JSON property audioStream



652
653
654
# File 'lib/google/apis/transcoder_v1/classes.rb', line 652

def audio_stream
  @audio_stream
end

#keyString

A unique key for this elementary stream. Corresponds to the JSON property key

Returns:

  • (String)


657
658
659
# File 'lib/google/apis/transcoder_v1/classes.rb', line 657

def key
  @key
end

#text_streamGoogle::Apis::TranscoderV1::TextStream

Encoding of a text stream. For example, closed captions or subtitles. Corresponds to the JSON property textStream



662
663
664
# File 'lib/google/apis/transcoder_v1/classes.rb', line 662

def text_stream
  @text_stream
end

#video_streamGoogle::Apis::TranscoderV1::VideoStream

Video stream resource. Corresponds to the JSON property videoStream



667
668
669
# File 'lib/google/apis/transcoder_v1/classes.rb', line 667

def video_stream
  @video_stream
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



674
675
676
677
678
679
# File 'lib/google/apis/transcoder_v1/classes.rb', line 674

def update!(**args)
  @audio_stream = args[:audio_stream] if args.key?(:audio_stream)
  @key = args[:key] if args.key?(:key)
  @text_stream = args[:text_stream] if args.key?(:text_stream)
  @video_stream = args[:video_stream] if args.key?(:video_stream)
end