Change audio format from ogg to mp3 for wider compatibility (#11141)
* Change audio format from ogg to mp3 for wider compatibility * Add media description as title to links of unknown media attachments
This commit is contained in:
parent
8f23726918
commit
49ebda4d49
3 changed files with 9 additions and 4 deletions
|
@ -69,9 +69,13 @@ class MediaAttachment < ApplicationRecord
|
|||
|
||||
AUDIO_STYLES = {
|
||||
original: {
|
||||
format: 'ogg',
|
||||
content_type: 'audio/ogg',
|
||||
convert_options: {},
|
||||
format: 'mp3',
|
||||
content_type: 'audio/mpeg',
|
||||
convert_options: {
|
||||
output: {
|
||||
'q:a' => 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
}.freeze
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue