ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Support for Running in Workers without `document` Object

Open Yharooer opened this issue 2 years ago • 1 comments

At the moment, FFmpeg.wasm cannot be run on a Service Worker since Service Worker does not have access to document.

One reason this does not work is due to the usage of resolve-url which fails if the document object is not available.

One would also have to change the way the script is injected by using importScripts over document.createElement('script') if document is not available.

Yharooer avatar Sep 20 '21 22:09 Yharooer

seconded - broken in webworkers, which is obviously a huge use case.

polisen avatar Nov 02 '21 14:11 polisen

Bump... running ffmpeg off the main thread would be very useful. Hopefully this can be prioritized...

Paul-Browne avatar Nov 04 '22 15:11 Paul-Browne