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