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

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

Overview

Information about an audio stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoFileDetailsAudioStream

Returns a new instance of VideoFileDetailsAudioStream.



8017
8018
8019
# File 'lib/google/apis/youtube_v3/classes.rb', line 8017

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

Instance Attribute Details

#bitrate_bpsFixnum

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

Returns:

  • (Fixnum)


7999
8000
8001
# File 'lib/google/apis/youtube_v3/classes.rb', line 7999

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)


8004
8005
8006
# File 'lib/google/apis/youtube_v3/classes.rb', line 8004

def channel_count
  @channel_count
end

#codecString

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

Returns:

  • (String)


8009
8010
8011
# File 'lib/google/apis/youtube_v3/classes.rb', line 8009

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)


8015
8016
8017
# File 'lib/google/apis/youtube_v3/classes.rb', line 8015

def vendor
  @vendor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8022
8023
8024
8025
8026
8027
# File 'lib/google/apis/youtube_v3/classes.rb', line 8022

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