Class: Google::Apis::DriveV3::File::VideoMediaMetadata
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DriveV3::File::VideoMediaMetadata
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/drive_v3/classes.rb,
generated/google/apis/drive_v3/representations.rb,
generated/google/apis/drive_v3/representations.rb 
Overview
Additional metadata about video media. This may not be available immediately upon upload.
Instance Attribute Summary collapse
- 
  
    
      #duration_millis  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The duration of the video in milliseconds.
 - 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The height of the video in pixels.
 - 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The width of the video in pixels.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VideoMediaMetadata 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of VideoMediaMetadata.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoMediaMetadata
Returns a new instance of VideoMediaMetadata
      1364 1365 1366  | 
    
      # File 'generated/google/apis/drive_v3/classes.rb', line 1364 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#duration_millis ⇒ Fixnum
The duration of the video in milliseconds.
Corresponds to the JSON property durationMillis
      1352 1353 1354  | 
    
      # File 'generated/google/apis/drive_v3/classes.rb', line 1352 def duration_millis @duration_millis end  | 
  
#height ⇒ Fixnum
The height of the video in pixels.
Corresponds to the JSON property height
      1357 1358 1359  | 
    
      # File 'generated/google/apis/drive_v3/classes.rb', line 1357 def height @height end  | 
  
#width ⇒ Fixnum
The width of the video in pixels.
Corresponds to the JSON property width
      1362 1363 1364  | 
    
      # File 'generated/google/apis/drive_v3/classes.rb', line 1362 def width @width end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1369 1370 1371 1372 1373  | 
    
      # File 'generated/google/apis/drive_v3/classes.rb', line 1369 def update!(**args) @duration_millis = args[:duration_millis] if args.key?(:duration_millis) @height = args[:height] if args.key?(:height) @width = args[:width] if args.key?(:width) end  |