This commit is contained in:
jeromewu
2019-11-06 13:07:12 +00:00
parent dbcb56b55c
commit c01845d28a
16 changed files with 1286 additions and 5 deletions

18
tests/constants.js Normal file
View File

@@ -0,0 +1,18 @@
const TIMEOUT = 30000;
const BASE_URL = 'http://localhost:3000/tests/assets';
const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
const OPTIONS = {
corePath: '../node_modules/@ffmpeg/core/ffmpeg-core.js',
...(IS_BROWSER ? { workerPath: '../dist/worker.dev.js' } : {}),
};
const FLAME_MP4_LENGTH = 100374;
if (typeof module !== 'undefined') {
module.exports = {
TIMEOUT,
BASE_URL,
IS_BROWSER,
OPTIONS,
FLAME_MP4_LENGTH,
};
}