mirror of
https://github.com/imputnet/cobalt.git
synced 2025-08-15 17:08:28 +00:00
web/workers: rename remux() function to ffmpeg()
This commit is contained in:
parent
54408b159e
commit
6b11e49d4a
@ -11,7 +11,7 @@ const error = (code: string) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const remux = async (variant: string, files: CobaltFileReference[], args: string[], output: FileInfo) => {
|
const ffmpeg = async (variant: string, files: CobaltFileReference[], args: string[], output: FileInfo) => {
|
||||||
if (!(files && output && args)) return;
|
if (!(files && output && args)) return;
|
||||||
|
|
||||||
const ff = new LibAVWrapper((progress) => {
|
const ff = new LibAVWrapper((progress) => {
|
||||||
@ -98,6 +98,6 @@ const remux = async (variant: string, files: CobaltFileReference[], args: string
|
|||||||
self.onmessage = async (event: MessageEvent) => {
|
self.onmessage = async (event: MessageEvent) => {
|
||||||
const ed = event.data.cobaltFFmpegWorker;
|
const ed = event.data.cobaltFFmpegWorker;
|
||||||
if (ed?.variant && ed?.files && ed?.args && ed?.output) {
|
if (ed?.variant && ed?.files && ed?.args && ed?.output) {
|
||||||
await remux(ed.variant, ed.files, ed.args, ed.output);
|
await ffmpeg(ed.variant, ed.files, ed.args, ed.output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user