Closed cstoquer closed 9 years ago
Removed wizAssets dependency from AudioManager. Instead, a custom loader function can be specified in settings.getFileUri
wizAssets
AudioManager
settings.getFileUri
Add the following code to use wizAssets as loader:
if (window.wizAssets) { audioManager.settings.getFileUri = function wizAssetsGetUri(audioPath, id, cb) { window.wizAssets.downloadFile(audioPath + id + '.mp3', 'audio/' + id + '.mp3', function onSuccess(uri) { cb(null, uri) }, cb // onFail callback ); } }
updated
I would've totally dropped the check, but you gotta do what you gotta do :) Go for it and merge this please.
Removed
wizAssets
dependency fromAudioManager
. Instead, a custom loader function can be specified insettings.getFileUri
Add the following code to use
wizAssets
as loader: