report video size to backend
This commit is contained in:
parent
60d7616a76
commit
4bba45048b
1
index.ts
1
index.ts
|
|
@ -212,6 +212,7 @@ app.ws('/download/:id', async (ws, req) => {
|
||||||
return ws.close()
|
return ws.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ws.send(`VIDEOSIZE-${videoSizeTotal}`)
|
||||||
audioOutputStream = createOutputStream(req.params.id, selectedFormats.audioFormat.mimeType!);
|
audioOutputStream = createOutputStream(req.params.id, selectedFormats.audioFormat.mimeType!);
|
||||||
videoOutputStream = createOutputStream(req.params.id, selectedFormats.videoFormat.mimeType!);
|
videoOutputStream = createOutputStream(req.params.id, selectedFormats.videoFormat.mimeType!);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue