Skip to content

Commit 979317c

Browse files
authored
Merge pull request goldfire#1415 from jusephe/fix-wav-support-in-safari-14
fix wav support in Safari 14
2 parents 97b1010 + 9f7521e commit 979317c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/howler.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
opus: !!audioTest.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ''),
274274
ogg: !!audioTest.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ''),
275275
oga: !!audioTest.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ''),
276-
wav: !!audioTest.canPlayType('audio/wav; codecs="1"').replace(/^no$/, ''),
276+
wav: !!(audioTest.canPlayType('audio/wav; codecs="1"') || audioTest.canPlayType('audio/wav')).replace(/^no$/, ''),
277277
aac: !!audioTest.canPlayType('audio/aac;').replace(/^no$/, ''),
278278
caf: !!audioTest.canPlayType('audio/x-caf;').replace(/^no$/, ''),
279279
m4a: !!(audioTest.canPlayType('audio/x-m4a;') || audioTest.canPlayType('audio/m4a;') || audioTest.canPlayType('audio/aac;')).replace(/^no$/, ''),

0 commit comments

Comments
 (0)