ffmpegwasm / ffmpegwasm/ffmpeg.wasm

[Feature] Event listeners

未关闭
#186 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

**Is your feature request related to a problem? Please describe.**
I'm making a browser extension with this module, and since there's a loading time, I need a way to inform the user when FFmpeg is usable.

**Describe the solution you'd like**
Have either:
```ts
ffmpeg.on("load", () => {});
```
or
```ts
ffmpeg.onLoad(() => {});
```
As well as a way to tell that FFmpeg has become inactive, i.e., finished the series of operations set in the code.

**Describe alternatives you've considered**
As a temporary solution, I can set a custom logger function and run a RegExp match against it, which will use `chrome.runtime.sendMessage()` to update the client that FFmpeg is ready.

**Additional context**

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。