still fixing video streaming, issue with canceled request
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user