Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions __tests__/models.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ describe('audios model', () => {
'audio/mpeg',
'audio/ogg',
'audio/vorbis',
'audio/vnd.wave',
'audio/wav',
'audio/webm',
'audio/x-wav',
])('enables browser-supported mime %s', async (mime) => {
const { registerAudioHandler } = await import('../lib/models/audios.ts')
registerAudioHandler()
Expand Down
5 changes: 5 additions & 0 deletions lib/models/audios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ const browserSupportedMimes = [
'audio/mpeg',
'audio/ogg',
'audio/vorbis',
// The same RIFF/WAVE container under all three of its names: the one in
// common use, the registered one (RFC 2361) that mail clients send, and the
// historic x- form. What plays is decided by the bytes, not by the name.
'audio/vnd.wave',
'audio/wav',
'audio/webm',
'audio/x-wav',
]

export const tagname = 'oca-viewer-audio'
Expand Down
Loading