From f6649f5c2bab181c36f9f9975b176a242bb609bd Mon Sep 17 00:00:00 2001 From: subnub Date: Sun, 10 May 2020 23:58:55 -0400 Subject: [PATCH] testing video playback issue --- backend/controllers/file.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/controllers/file.ts b/backend/controllers/file.ts index df7a213..72dcfc6 100644 --- a/backend/controllers/file.ts +++ b/backend/controllers/file.ts @@ -368,6 +368,14 @@ class FileController { const headers = req.headers; console.log("stream request", req.params.id) + + req.on("close", () => { + console.log("req closed stream"); + }) + + req.on("abort", () => { + console.log("Aborted"); + }) await this.chunkService.streamVideo(user, fileID, headers, res);