diff --git a/core.d.ts b/core.d.ts index 1768cc04..e82b1f70 100644 --- a/core.d.ts +++ b/core.d.ts @@ -213,9 +213,9 @@ export type MimeType = | 'video/3gpp' | 'audio/mpeg' | 'audio/mp4' // RFC 4337 - | 'audio/opus' | 'video/ogg' | 'audio/ogg' + | 'audio/ogg; codecs=opus' | 'application/ogg' | 'audio/x-flac' | 'audio/ape' diff --git a/core.js b/core.js index fdaa4d00..ad02b1c7 100644 --- a/core.js +++ b/core.js @@ -529,7 +529,7 @@ export class FileTypeParser { if (_check(type, [0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64])) { return { ext: 'opus', - mime: 'audio/opus', + mime: 'audio/ogg; codecs=opus', }; } diff --git a/supported.js b/supported.js index b64f5b59..57857f7e 100644 --- a/supported.js +++ b/supported.js @@ -200,9 +200,9 @@ export const mimeTypes = [ 'video/3gpp', 'audio/mpeg', 'audio/mp4', // RFC 4337 - 'audio/opus', 'video/ogg', 'audio/ogg', + 'audio/ogg; codecs=opus', 'application/ogg', 'audio/x-flac', 'audio/ape',