PR #573 supposedly adds aborting feature. The message is properly received by the worker as we can see in the image below, but the process continues till completion.
The sample code in the PR is also a bit wrong, as we're supposed to call the .abort() in the AbortController itself, not the signal. But nonetheless the worker received the signal properly, but no interruption is being done.
Code:
const abortController = new AbortController();
const signal = abortController.signal;
const commands = ['-i', 'input.webm', 'output.mp4'];
await ffmpeg.exec(commands, undefined, { signal }).catch(err => {
if (err.name === "AbortError") {
console.log(err.message) // "`Message # ID was aborted`"
}
});
// Later on we call
abortController.abort();

PR #573 supposedly adds aborting feature. The message is properly received by the worker as we can see in the image below, but the process continues till completion.
The sample code in the PR is also a bit wrong, as we're supposed to call the
.abort()in theAbortControlleritself, not the signal. But nonetheless the worker received the signal properly, but no interruption is being done.Code: