0
0
Fork 0

Detect videos with no sound, handle them like gifv

This commit is contained in:
Eugen Rochko 2017-03-05 22:55:24 +01:00
parent 4fb95c91fb
commit 85fce04d1b
3 changed files with 16 additions and 1 deletions

View file

@ -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