Class: ActiveStorage::HotCell::Client::Previewers::Video::Ffmpeg

Inherits:
Previewer::VideoPreviewer
  • Object
show all
Includes:
Previewing
Defined in:
lib/active_storage/hot_cell/client/previewers/video/ffmpeg.rb

Overview

What Rails configures in config.active_storage.previewers, replacing VideoPreviewer.

Class Method Summary collapse

Methods included from Previewing

included, #preview

Class Method Details

.accept?(blob) ⇒ Boolean

blob.video? is the content-type predicate the superclass uses; ffmpeg_exists? is the part that has to go.

Returns:

  • (Boolean)


21
22
23
# File 'lib/active_storage/hot_cell/client/previewers/video/ffmpeg.rb', line 21

def self.accept?(blob)
  blob.video?
end