Class: VideoDimensions::Backends::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/video_dimensions/backends/base.rb

Overview

Public: Base interface for Backends

Direct Known Subclasses

FFmpeg, MediaInfo

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/video_dimensions/backends/base.rb', line 5

def self.available?
  false
end

Instance Method Details

#bitrateObject

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/video_dimensions/backends/base.rb', line 21

def bitrate
  raise NotImplementedError
end

#codecObject

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/video_dimensions/backends/base.rb', line 25

def codec
  raise NotImplementedError
end

#dimensionsObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/video_dimensions/backends/base.rb', line 9

def dimensions
  raise NotImplementedError
end

#durationObject

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/video_dimensions/backends/base.rb', line 29

def duration
  raise NotImplementedError
end

#heightObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/video_dimensions/backends/base.rb', line 17

def height
  raise NotImplementedError
end

#widthObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/video_dimensions/backends/base.rb', line 13

def width
  raise NotImplementedError
end