ffmpegwasm / ffmpegwasm/ffmpeg.wasm

[Feature] Event listeners

Aperta
#186 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
17.8k
Fork
1.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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**

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.