ffmpegwasm / ffmpegwasm/ffmpeg.wasm
Abort signal received by worker, but the process continues.
- Dominant language
- C
- Stars
- 17.8k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
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:
```typescript
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();
```

Contributor guide
Assessment
This issue has not been assessed yet.