Class: Google::Apis::YoutubeV3::VideoFileDetailsVideoStream

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 a video stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoFileDetailsVideoStream

Returns a new instance of VideoFileDetailsVideoStream.



7896
7897
7898
# File 'lib/google/apis/youtube_v3/classes.rb', line 7896

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

Instance Attribute Details

#aspect_ratioFloat

The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed. Corresponds to the JSON property aspectRatio

Returns:

  • (Float)


7856
7857
7858
# File 'lib/google/apis/youtube_v3/classes.rb', line 7856

def aspect_ratio
  @aspect_ratio
end

#bitrate_bpsFixnum

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

Returns:

  • (Fixnum)


7861
7862
7863
# File 'lib/google/apis/youtube_v3/classes.rb', line 7861

def bitrate_bps
  @bitrate_bps
end

#codecString

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

Returns:

  • (String)


7866
7867
7868
# File 'lib/google/apis/youtube_v3/classes.rb', line 7866

def codec
  @codec
end

#frame_rate_fpsFloat

The video stream's frame rate, in frames per second. Corresponds to the JSON property frameRateFps

Returns:

  • (Float)


7871
7872
7873
# File 'lib/google/apis/youtube_v3/classes.rb', line 7871

def frame_rate_fps
  @frame_rate_fps
end

#height_pixelsFixnum

The encoded video content's height in pixels. Corresponds to the JSON property heightPixels

Returns:

  • (Fixnum)


7876
7877
7878
# File 'lib/google/apis/youtube_v3/classes.rb', line 7876

def height_pixels
  @height_pixels
end

#rotationString

The amount that YouTube needs to rotate the original source content to properly display the video. Corresponds to the JSON property rotation

Returns:

  • (String)


7882
7883
7884
# File 'lib/google/apis/youtube_v3/classes.rb', line 7882

def rotation
  @rotation
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)


7888
7889
7890
# File 'lib/google/apis/youtube_v3/classes.rb', line 7888

def vendor
  @vendor
end

#width_pixelsFixnum

The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as width_pixels / height_pixels. Corresponds to the JSON property widthPixels

Returns:

  • (Fixnum)


7894
7895
7896
# File 'lib/google/apis/youtube_v3/classes.rb', line 7894

def width_pixels
  @width_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
# File 'lib/google/apis/youtube_v3/classes.rb', line 7901

def update!(**args)
  @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio)
  @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps)
  @codec = args[:codec] if args.key?(:codec)
  @frame_rate_fps = args[:frame_rate_fps] if args.key?(:frame_rate_fps)
  @height_pixels = args[:height_pixels] if args.key?(:height_pixels)
  @rotation = args[:rotation] if args.key?(:rotation)
  @vendor = args[:vendor] if args.key?(:vendor)
  @width_pixels = args[:width_pixels] if args.key?(:width_pixels)
end