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.
503 504 505 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 503 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_stream ⇒ Google::Apis::TranscoderV1::AudioStream
Audio stream resource.
Corresponds to the JSON property audioStream
486 487 488 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 486 def audio_stream @audio_stream end |
#key ⇒ String
A unique key for this elementary stream.
Corresponds to the JSON property key
491 492 493 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 491 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
496 497 498 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 496 def text_stream @text_stream end |
#video_stream ⇒ Google::Apis::TranscoderV1::VideoStream
Video stream resource.
Corresponds to the JSON property videoStream
501 502 503 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 501 def video_stream @video_stream end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
508 509 510 511 512 513 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 508 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 |