Major refactor to adapt new ffmpeg-core.js
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
const TIMEOUT = 30000;
|
||||
const TIMEOUT = 60000;
|
||||
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 = {
|
||||
@@ -13,6 +11,5 @@ if (typeof module !== 'undefined') {
|
||||
BASE_URL,
|
||||
IS_BROWSER,
|
||||
OPTIONS,
|
||||
FLAME_MP4_LENGTH,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user