class FormatParser::Video

Constants

NATURE

Attributes

content_type[RW]

The MIME type of the video

format[RW]

Type of the file (e.g :mp3)

height_px[RW]
intrinsics[RW]

If a parser wants to provide any extra information to the caller it can be placed here

media_duration_frames[RW]

Duration of the media object in addressable frames or samples, as an Integer

media_duration_seconds[RW]

Duration of the media object (be it audio or video) in seconds, as a Float

width_px[RW]

Public Class Methods

new(**attributes) click to toggle source

Only permits assignments via defined accessors

# File lib/video.rb, line 30
def initialize(**attributes)
  attributes.map { |(k, v)| public_send("#{k}=", v) }
end

Public Instance Methods

nature() click to toggle source
# File lib/video.rb, line 34
def nature
  NATURE
end