tweak at audio comment extension

This commit is contained in:
Reinaldo Neto 2023-07-05 14:56:16 -03:00
parent 6ed1c7e62f
commit abb7df7785
1 changed files with 2 additions and 1 deletions

View File

@ -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';
}