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

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 a video 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) ⇒ VideoFileDetailsVideoStream

Returns a new instance of VideoFileDetailsVideoStream.


7553
7554
7555
# File 'generated/google/apis/youtube_v3/classes.rb', line 7553

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)

7513
7514
7515
# File 'generated/google/apis/youtube_v3/classes.rb', line 7513

def aspect_ratio
  @aspect_ratio
end

#bitrate_bpsString

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

Returns:

  • (String)

7518
7519
7520
# File 'generated/google/apis/youtube_v3/classes.rb', line 7518

def bitrate_bps
  @bitrate_bps
end

#codecString

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

Returns:

  • (String)

7523
7524
7525
# File 'generated/google/apis/youtube_v3/classes.rb', line 7523

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)

7528
7529
7530
# File 'generated/google/apis/youtube_v3/classes.rb', line 7528

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)

7533
7534
7535
# File 'generated/google/apis/youtube_v3/classes.rb', line 7533

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)

7539
7540
7541
# File 'generated/google/apis/youtube_v3/classes.rb', line 7539

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)

7545
7546
7547
# File 'generated/google/apis/youtube_v3/classes.rb', line 7545

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)

7551
7552
7553
# File 'generated/google/apis/youtube_v3/classes.rb', line 7551

def width_pixels
  @width_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
# File 'generated/google/apis/youtube_v3/classes.rb', line 7558

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