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.
606 607 608 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 606 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_stream ⇒ Google::Apis::TranscoderV1::AudioStream
Audio stream resource.
Corresponds to the JSON property audioStream
589 590 591 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 589 def audio_stream @audio_stream end |
#key ⇒ String
A unique key for this elementary stream.
Corresponds to the JSON property key
594 595 596 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 594 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
599 600 601 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 599 def text_stream @text_stream end |
#video_stream ⇒ Google::Apis::TranscoderV1::VideoStream
Video stream resource.
Corresponds to the JSON property videoStream
604 605 606 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 604 def video_stream @video_stream end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
611 612 613 614 615 616 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 611 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 |