tweak at audio comment extension
This commit is contained in:
parent
6ed1c7e62f
commit
abb7df7785
|
@ -66,7 +66,8 @@ const getExtension = (type: MediaTypes, mimeType?: string) => {
|
|||
if (mimeType === 'audio/mpeg') {
|
||||
return 'mp3';
|
||||
}
|
||||
// For older audios the server is returning the type audio/aac and we can't play it as mp3
|
||||
// Audios sent by Android devices are in the audio/aac format, which cannot be converted to mp3 by iOS.
|
||||
// However, both platforms support the m4a format, so they can maintain the same behavior.
|
||||
if (mimeType === 'audio/aac') {
|
||||
return 'm4a';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue