web/remux: init libav on page load, basic progress event handling

This commit is contained in:
dumbmoron 2024-08-13 14:39:39 +00:00
parent 28600e7e4c
commit 72545ffb5d
No known key found for this signature in database

View file

@ -11,10 +11,11 @@
let processing = false; let processing = false;
const ff = new LibAVWrapper(console.log);
ff.init();
const render = async () => { const render = async () => {
if (!file || processing) return; if (!file || processing) return;
const ff = new LibAVWrapper();
await ff.init(); await ff.init();
processing = true; processing = true;