konowebcodecs/tests/constants.js
2020-04-29 09:27:21 +08:00

16 lines
391 B
JavaScript

const TIMEOUT = 60000;
const BASE_URL = 'http://localhost:3000/tests/assets';
const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
const OPTIONS = {
corePath: 'http://localhost:3000/node_modules/@ffmpeg/core/ffmpeg-core.js',
};
if (typeof module !== 'undefined') {
module.exports = {
TIMEOUT,
BASE_URL,
IS_BROWSER,
OPTIONS,
};
}