diff --git a/airtime_mvc/public/js/airtime/common/audioplaytest.js b/airtime_mvc/public/js/airtime/common/audioplaytest.js index 9e5218468..aa9b8917b 100644 --- a/airtime_mvc/public/js/airtime/common/audioplaytest.js +++ b/airtime_mvc/public/js/airtime/common/audioplaytest.js @@ -5,12 +5,8 @@ function isAudioSupported(mime){ var bMime = null; if (mime.indexOf("ogg") != -1 || mime.indexOf("vorbis") != -1) { bMime = 'audio/ogg; codecs="vorbis"'; - } else if (mime.indexOf("mp3") != -1) { - bMime = "audio/mp3"; - } else if (mime.indexOf("mp4") != -1) { - bMime = "audio/mp4"; - } else if (mime.indexOf("flac") != -1) { - bMime = "audio/x-flac"; + } else { + bMime = mime; } return !!bMime && !!audio.canPlayType && audio.canPlayType(bMime) != "";