Class: Google::Apis::YoutubeV3::VideoFileDetails

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

Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information.

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) ⇒ VideoFileDetails

Returns a new instance of VideoFileDetails.


7448
7449
7450
# File 'generated/google/apis/youtube_v3/classes.rb', line 7448

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

Instance Attribute Details

#audio_streamsArray<Google::Apis::YoutubeV3::VideoFileDetailsAudioStream>

A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream. Corresponds to the JSON property audioStreams


7390
7391
7392
# File 'generated/google/apis/youtube_v3/classes.rb', line 7390

def audio_streams
  @audio_streams
end

#bitrate_bpsString

The uploaded video file's combined (video and audio) bitrate in bits per second. Corresponds to the JSON property bitrateBps

Returns:

  • (String)

7396
7397
7398
# File 'generated/google/apis/youtube_v3/classes.rb', line 7396

def bitrate_bps
  @bitrate_bps
end

#containerString

The uploaded video file's container format. Corresponds to the JSON property container

Returns:

  • (String)

7401
7402
7403
# File 'generated/google/apis/youtube_v3/classes.rb', line 7401

def container
  @container
end

#creation_timeString

The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported:

  • Date only: YYYY-MM-DD
  • Naive time: YYYY-MM-DDTHH:MM:SS
  • Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM Corresponds to the JSON property creationTime

Returns:

  • (String)

7411
7412
7413
# File 'generated/google/apis/youtube_v3/classes.rb', line 7411

def creation_time
  @creation_time
end

#duration_msString

The length of the uploaded video in milliseconds. Corresponds to the JSON property durationMs

Returns:

  • (String)

7416
7417
7418
# File 'generated/google/apis/youtube_v3/classes.rb', line 7416

def duration_ms
  @duration_ms
end

#file_nameString

The uploaded file's name. This field is present whether a video file or another type of file was uploaded. Corresponds to the JSON property fileName

Returns:

  • (String)

7422
7423
7424
# File 'generated/google/apis/youtube_v3/classes.rb', line 7422

def file_name
  @file_name
end

#file_sizeString

The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded. Corresponds to the JSON property fileSize

Returns:

  • (String)

7428
7429
7430
# File 'generated/google/apis/youtube_v3/classes.rb', line 7428

def file_size
  @file_size
end

#file_typeString

The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded. Corresponds to the JSON property fileType

Returns:

  • (String)

7435
7436
7437
# File 'generated/google/apis/youtube_v3/classes.rb', line 7435

def file_type
  @file_type
end

#recording_locationGoogle::Apis::YoutubeV3::GeoPoint

Geographical coordinates of a point, in WGS84. Corresponds to the JSON property recordingLocation


7440
7441
7442
# File 'generated/google/apis/youtube_v3/classes.rb', line 7440

def recording_location
  @recording_location
end

#video_streamsArray<Google::Apis::YoutubeV3::VideoFileDetailsVideoStream>

A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream. Corresponds to the JSON property videoStreams


7446
7447
7448
# File 'generated/google/apis/youtube_v3/classes.rb', line 7446

def video_streams
  @video_streams
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
# File 'generated/google/apis/youtube_v3/classes.rb', line 7453

def update!(**args)
  @audio_streams = args[:audio_streams] if args.key?(:audio_streams)
  @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps)
  @container = args[:container] if args.key?(:container)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @duration_ms = args[:duration_ms] if args.key?(:duration_ms)
  @file_name = args[:file_name] if args.key?(:file_name)
  @file_size = args[:file_size] if args.key?(:file_size)
  @file_type = args[:file_type] if args.key?(:file_type)
  @recording_location = args[:recording_location] if args.key?(:recording_location)
  @video_streams = args[:video_streams] if args.key?(:video_streams)
end