still fixing video streaming, issue with canceled request

This commit is contained in:
subnub
2020-05-11 00:20:06 -04:00
parent f6649f5c2b
commit 985ef2dfc3
5 changed files with 23 additions and 11 deletions
+7 -7
View File
@@ -369,15 +369,15 @@ class FileController {
console.log("stream request", req.params.id)
req.on("close", () => {
console.log("req closed stream");
})
// req.on("close", () => {
// console.log("req closed stream");
// })
req.on("abort", () => {
console.log("Aborted");
})
// req.on("abort", () => {
// console.log("Aborted");
// })
await this.chunkService.streamVideo(user, fileID, headers, res);
await this.chunkService.streamVideo(user, fileID, headers, res, req);
} catch (e) {