方法
- A
- F
- P
类公共方法
accept?(blob) 链接
ffmpeg_exists?() 链接
ffmpeg_path() 链接
实例公共方法
preview(**options) 链接
# File activestorage/lib/active_storage/previewer/video_previewer.rb, line 23 def preview(**options) download_blob_to_tempfile do |input| draw_relevant_frame_from input do |output| yield io: output, filename: "#{blob.filename.base}.jpg", content_type: "image/jpeg", **options end end end