It is a normal situation as web workers are simulating threads in FFmpeg and it is good as we don’t want ffmpeg.wasm to block our main thread. When you run n(), you might find tons of web workers spawned. But in ffmpeg.wasm, to enable pthread / mutli-threading support to speed up, it is a required data type to use. SharedArrayBuffer is a pretty new data type in JavaScript, right now most of the browsers still lack of fully support due to security issues.
0 Comments
Leave a Reply. |