Open simongcc opened 7 years ago
We can check this out. We might have to reconfigure the type checking to check both the extension AND the map. Currently if we sub in mp3:"mpeg"
into the extension map it will use that, and not check for the audio/mp3.
@lannymcnie Thanks for your reply and looking into it.
As a tempoary workaround for myself, I have added also mpeg:"mp3"
so that it check both interchangeably.
Recently, I am using SoundJS to create a game and need to support Android 4.1.2 However, I found that although Android 4.1.2 Android Browser can play
mp3
,WebAudioPlugin
give it afalse
mainly because the current checking method is aimed for latestwindow.AudioContext
and thecanPlayType
is also different in 4.1.2, it isaudio/mpeg
instead ofaudio/mp3
nowadays so it does not give atrue
when checkingmp3
.I wonder if it is a good idea to add
window.audio
in the checking and addmp3: 'mpeg'
in theEXTENSION_MAP
for a compatibility purpose?updated notes: I found that only add
mp3: 'mpeg'
that the HTMLAudioPlugin can support to play mp3 in Android 4.1.2