mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-24 10:32:09 +02:00
web/libav: allow passing options to init
This commit is contained in:
parent
19a342457b
commit
945f87d93b
@ -15,10 +15,14 @@ export default class LibAVWrapper {
|
|||||||
this.onProgress = onProgress;
|
this.onProgress = onProgress;
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init(options?: LibAV.LibAVOpts) {
|
||||||
|
if (!options) options = {
|
||||||
|
yesthreads: true,
|
||||||
|
}
|
||||||
|
|
||||||
if (this.concurrency && !this.libav) {
|
if (this.concurrency && !this.libav) {
|
||||||
this.libav = LibAV.LibAV({
|
this.libav = LibAV.LibAV({
|
||||||
yesthreads: true,
|
...options,
|
||||||
base: '/_libav'
|
base: '/_libav'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user