mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 09:58:27 +00:00
web/libav: properly instantiate libav property
This commit is contained in:
parent
038c29dc8d
commit
83f46864b2
@ -3,10 +3,11 @@ import LibAV, { type LibAV as LibAVInstance } from "@imput/libav.js-remux-cli";
|
|||||||
import type { FileInfo, RenderParams } from "./types/libav";
|
import type { FileInfo, RenderParams } from "./types/libav";
|
||||||
|
|
||||||
export default class LibAVWrapper {
|
export default class LibAVWrapper {
|
||||||
libav!: LibAVInstance | null;
|
libav: LibAVInstance | null;
|
||||||
concurrency: number;
|
concurrency: number;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.libav = null;
|
||||||
this.concurrency = Math.min(4, navigator.hardwareConcurrency);
|
this.concurrency = Math.min(4, navigator.hardwareConcurrency);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user