SAAS-1150: Null mime type breaks the scheduled shows tab

This commit is contained in:
Albert Santoni 2015-10-23 15:00:19 -04:00
parent 16a0172542
commit aed18c534d
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@
function isAudioSupported(mime){
var audio = new Audio();
if ((typeof mime) !== "string" || (mime === null)) {
return false;
}
var bMime = null;
if (mime.indexOf("ogg") != -1 || mime.indexOf("vorbis") != -1) {
bMime = 'audio/ogg; codecs="vorbis"';