ffprobe-wasm icon indicating copy to clipboard operation
ffprobe-wasm copied to clipboard

worker does not terminate

Open yetzt opened this issue 3 years ago • 3 comments

after worker.getFileInfo is done, the worker does not terminate and there is no way to terminate the worker.

yetzt avatar May 04 '22 10:05 yetzt

Hi! I didn't mention it in the readme, but you can use worker.terminate() to terminate the worker

tfoxy avatar May 04 '22 13:05 tfoxy

thanks!

would be nice if it could be fed with buffers instead of files only.

yetzt avatar May 04 '22 13:05 yetzt

For the browser, I believe it should be an easy change to support ArrayBuffer or Blob. For node.js I'm not sure if I can do it, but I will try.

tfoxy avatar May 04 '22 15:05 tfoxy