mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-23 18:16:14 +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;
|
||||
}
|
||||
|
||||
init() {
|
||||
init(options?: LibAV.LibAVOpts) {
|
||||
if (!options) options = {
|
||||
yesthreads: true,
|
||||
}
|
||||
|
||||
if (this.concurrency && !this.libav) {
|
||||
this.libav = LibAV.LibAV({
|
||||
yesthreads: true,
|
||||
...options,
|
||||
base: '/_libav'
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user