fix: support audio with ogg filetype (#2924)

fix: ogg audio workaround
This commit is contained in:
LeaPhant 2026-05-14 11:46:54 +02:00 committed by GitHub
commit 21bbf4bee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,7 @@ export const APPLICATION_MIME_TYPES = [
'application/javascript', 'application/javascript',
'application/xhtml+xml', 'application/xhtml+xml',
'application/xml', 'application/xml',
'application/ogg',
]; ];
export const TEXT_MIME_TYPE = [ export const TEXT_MIME_TYPE = [
@ -115,6 +116,10 @@ export const getBlobSafeMimeType = (mimeType: string) => {
if (type === 'video/quicktime') { if (type === 'video/quicktime') {
return 'video/mp4'; return 'video/mp4';
} }
// Fixes missing playback for Ogg audio
if (type === 'application/ogg') {
return 'audio/ogg';
}
return type; return type;
}; };