class Google::Apis::YoutubeV3::VideoFileDetailsVideoStream

Information about a video stream.

Attributes

aspect_ratio[RW]

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` @return [Float]

bitrate_bps[RW]

The video stream's bitrate, in bits per second. Corresponds to the JSON property `bitrateBps` @return [String]

codec[RW]

The video codec that the stream uses. Corresponds to the JSON property `codec` @return [String]

frame_rate_fps[RW]

The video stream's frame rate, in frames per second. Corresponds to the JSON property `frameRateFps` @return [Float]

height_pixels[RW]

The encoded video content's height in pixels. Corresponds to the JSON property `heightPixels` @return [Fixnum]

rotation[RW]

The amount that YouTube needs to rotate the original source content to properly display the video. Corresponds to the JSON property `rotation` @return [String]

vendor[RW]

A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code. Corresponds to the JSON property `vendor` @return [String]

width_pixels[RW]

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` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 7368
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_v3/classes.rb, line 7373
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