Detect videos with no sound, handle them like gifv
This commit is contained in:
1 parent
4fb95c91fb
commit
85fce04d1b
3 files changed
+16
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user