2016-06-02 15:35:31 +02:00
|
|
|
import AppConstants from '../../constants/application_constants';
|
|
|
|
|
2016-06-13 14:35:02 +02:00
|
|
|
import { InjectInHeadUtils } from '../../utils/inject';
|
2016-06-02 15:35:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Imports audiojs from the copied directory.
|
|
|
|
*
|
|
|
|
* Unfortunately, audiojs' package structure and the way it currently loads image assets prevents us
|
|
|
|
* from using System.import.
|
|
|
|
*
|
|
|
|
* @return {Promise} Promise that resolves with [audio.min.js] on success.
|
|
|
|
*/
|
|
|
|
function importLib() {
|
|
|
|
return InjectInHeadUtils.inject(AppConstants.audiojs.sdkUrl);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default { importLib };
|