react-app icon indicating copy to clipboard operation
react-app copied to clipboard

ffmpeg-core unpkg NotSameOriginAfterDefaultedToSameOriginByCoep

Open dvnrsn opened this issue 3 years ago • 5 comments

The initial problem faced running this app is an inability to successfully fetch from unpkg

image

However, disabling the cross origin leads to the SharedArayBuffer problem as described in installation. Does this mean the ffmpeg core needs to be loaded from same origin?

  const ffmpeg = createFFmpeg({
    corePath: "node_modules/@ffmpeg/core/dist/ffmpeg-core.js",

Doing so creates a problem that I originally faced trying this out in codesandbox

image

dvnrsn avatar May 22 '22 00:05 dvnrsn

Related https://github.com/ffmpegwasm/ffmpeg.wasm/issues/263

dvnrsn avatar May 22 '22 00:05 dvnrsn

"why it doesn't work in my local environment" section https://github.com/ffmpegwasm/ffmpeg.wasm#why-it-doesnt-work-in-my-local-environment

dvnrsn avatar May 22 '22 00:05 dvnrsn

Was able to resolve this in nextJS context by moving all scripts (ffmpeg-core.js, wasm, worker, min) to public/. This does not seem preferable but working for now.

dvnrsn avatar May 22 '22 17:05 dvnrsn

The same error

0x-sen avatar Jan 10 '23 15:01 0x-sen

The same error

402329651 avatar Feb 10 '23 03:02 402329651