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
parent e5e0b96861
commit 21bbf4bee0
+5
View File
@@ -31,6 +31,7 @@ export const APPLICATION_MIME_TYPES = [
'application/javascript',
'application/xhtml+xml',
'application/xml',
'application/ogg',
];
export const TEXT_MIME_TYPE = [
@@ -115,6 +116,10 @@ export const getBlobSafeMimeType = (mimeType: string) => {
if (type === 'video/quicktime') {
return 'video/mp4';
}
// Fixes missing playback for Ogg audio
if (type === 'application/ogg') {
return 'audio/ogg';
}
return type;
};