Class: Google::Apis::YoutubeV3::VideoFileDetailsAudioStream

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb

Overview

Information about an audio stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VideoFileDetailsAudioStream

Returns a new instance of VideoFileDetailsAudioStream.



7492
7493
7494
# File 'generated/google/apis/youtube_v3/classes.rb', line 7492

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

Instance Attribute Details

#bitrate_bpsString

The audio stream's bitrate, in bits per second. Corresponds to the JSON property bitrateBps

Returns:

  • (String)


7474
7475
7476
# File 'generated/google/apis/youtube_v3/classes.rb', line 7474

def bitrate_bps
  @bitrate_bps
end

#channel_countFixnum

The number of audio channels that the stream contains. Corresponds to the JSON property channelCount

Returns:

  • (Fixnum)


7479
7480
7481
# File 'generated/google/apis/youtube_v3/classes.rb', line 7479

def channel_count
  @channel_count
end

#codecString

The audio codec that the stream uses. Corresponds to the JSON property codec

Returns:

  • (String)


7484
7485
7486
# File 'generated/google/apis/youtube_v3/classes.rb', line 7484

def codec
  @codec
end

#vendorString

A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code. Corresponds to the JSON property vendor

Returns:

  • (String)


7490
7491
7492
# File 'generated/google/apis/youtube_v3/classes.rb', line 7490

def vendor
  @vendor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7497
7498
7499
7500
7501
7502
# File 'generated/google/apis/youtube_v3/classes.rb', line 7497

def update!(**args)
  @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps)
  @channel_count = args[:channel_count] if args.key?(:channel_count)
  @codec = args[:codec] if args.key?(:codec)
  @vendor = args[:vendor] if args.key?(:vendor)
end