Skip to content

Commit

Permalink
patch soundmanger2 for flac
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello authored Apr 9, 2017
1 parent 8c80d3c commit b8025f1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/soundmanager2.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ function SoundManager(smURL, smID) {
'wav': {
'type': ['audio/wav; codecs="1"', 'audio/wav', 'audio/wave', 'audio/x-wav'],
'required': false
}
},

'flac': {
'type': ['audio/flac'],
'required': false
}

};

Expand Down Expand Up @@ -272,7 +277,7 @@ function SoundManager(smURL, smID) {
var SMSound,
sm2 = this, globalHTML5Audio = null, flash = null, sm = 'soundManager', smc = sm + ': ', h5 = 'HTML5::', id, ua = navigator.userAgent, wl = window.location.href.toString(), doc = document, doNothing, setProperties, init, fV, on_queue = [], debugOpen = true, debugTS, didAppend = false, appendSuccess = false, didInit = false, disabled = false, windowLoaded = false, _wDS, wdCount = 0, initComplete, mixin, assign, extraOptions, addOnEvent, processOnEvents, initUserOnload, delayWaitForEI, waitForEI, rebootIntoHTML5, setVersionInfo, handleFocus, strings, initMovie, domContentLoaded, winOnLoad, didDCLoaded, getDocument, createMovie, catchError, setPolling, initDebug, debugLevels = ['log', 'info', 'warn', 'error'], defaultFlashVersion = 8, disableObject, failSafely, normalizeMovieURL, oRemoved = null, oRemovedHTML = null, str, flashBlockHandler, getSWFCSS, swfCSS, toggleDebug, loopFix, policyFix, complain, idCheck, waitingForEI = false, initPending = false, startTimer, stopTimer, timerExecute, h5TimerCount = 0, h5IntervalTimer = null, parseURL, messages = [],
canIgnoreFlash, needsFlash = null, featureCheck, html5OK, html5CanPlay, html5Ext, html5Unload, domContentLoadedIE, testHTML5, event, slice = Array.prototype.slice, useGlobalHTML5Audio = false, lastGlobalHTML5URL, hasFlash, detectFlash, badSafariFix, html5_events, showSupport, flushMessages, wrapCallback, idCounter = 0, didSetup, msecScale = 1000,
is_iDevice = ua.match(/(ipad|iphone|ipod)/i), isAndroid = ua.match(/android/i), isIE = ua.match(/msie/i),
is_iDevice = ua.match(/(ipad|iphone|ipod)/i), isAndroid = ua.match(/android/i), isIE = ua.match(/(msie|trident)/i),
isWebkit = ua.match(/webkit/i),
isSafari = (ua.match(/safari/i) && !ua.match(/chrome/i)),
isOpera = (ua.match(/opera/i)),
Expand Down

0 comments on commit b8025f1

Please sign in to comment.