diff --git a/package.json b/package.json index 85e4f09f7e..e4930037c2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "serve": "http-server -c-1 -s -p 3000 .", "test": "server-test test:browser:server 3000 test:all", "test:all": "npm-run-all test:browser:*:*", - "test:browser": "mocha-headless-chrome -a enable-features=SharedArrayBuffer -a no-sandbox", + "test:browser": "mocha-headless-chrome --args=\"--enable-features=SharedArrayBuffer --enable-experimental-web-platform-features --cross-origin-isolated --allow-file-access-from-files\" -a no-sandbox -f http://localhost:3000/tests/ffmpeg-core-mt.test.html", "test:browser:core:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-mt.test.html", "test:browser:core:st": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-st.test.html", "test:browser:ffmpeg:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-mt.test.html", diff --git a/tests/ffmpeg.test.js b/tests/ffmpeg.test.js index 5e20eef88e..fad77c5820 100644 --- a/tests/ffmpeg.test.js +++ b/tests/ffmpeg.test.js @@ -6,7 +6,7 @@ const createFFmpeg = async () => { const ffmpeg = new FFmpeg(); await ffmpeg.load({ coreURL: CORE_URL, - thread: FFMPEG_TYPE === "mt", + thread: FFMPEG_TYPE === "mt" && crossOriginIsolated, }); return ffmpeg; };