Detect videos with no sound, handle them like gifv
This commit is contained in:
parent
4fb95c91fb
commit
85fce04d1b
3 changed files with 16 additions and 1 deletions
|
@ -80,7 +80,7 @@ class MediaAttachment < ApplicationRecord
|
|||
if f.file_content_type == 'image/gif'
|
||||
[:gif_transcoder]
|
||||
elsif VIDEO_MIME_TYPES.include? f.file_content_type
|
||||
[:transcoder]
|
||||
[:video_transcoder]
|
||||
else
|
||||
[:thumbnail]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue