Class: Google::Apis::TranscoderV1::ElementaryStream
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::ElementaryStream
- 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
-
#audio_stream ⇒ Google::Apis::TranscoderV1::AudioStream
Audio stream resource.
-
#key ⇒ String
A unique key for this elementary stream.
-
#text_stream ⇒ Google::Apis::TranscoderV1::TextStream
Encoding of a text stream.
-
#video_stream ⇒ Google::Apis::TranscoderV1::VideoStream
Video stream resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ElementaryStream
constructor
A new instance of ElementaryStream.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ElementaryStream
Returns a new instance of ElementaryStream.
586 587 588 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 586 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_stream ⇒ Google::Apis::TranscoderV1::AudioStream
Audio stream resource.
Corresponds to the JSON property audioStream
569 570 571 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 569 def audio_stream @audio_stream end |
#key ⇒ String
A unique key for this elementary stream.
Corresponds to the JSON property key
574 575 576 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 574 def key @key end |
#text_stream ⇒ Google::Apis::TranscoderV1::TextStream
Encoding of a text stream. For example, closed captions or subtitles.
Corresponds to the JSON property textStream
579 580 581 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 579 def text_stream @text_stream end |
#video_stream ⇒ Google::Apis::TranscoderV1::VideoStream
Video stream resource.
Corresponds to the JSON property videoStream
584 585 586 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 584 def video_stream @video_stream end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
591 592 593 594 595 596 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 591 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 |