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
@@ -8,7 +8,7 @@ interface ChunkInterface {
getThumbnail: (user: UserInterface, id: string) => Promise<Buffer>;
getFullThumbnail: (user: UserInterface, fileID: string, res: Response) => void;
getPublicDownload: (fileID: string, tempToken: any, res: Response) => void;
streamVideo: (user: UserInterface, fileID: string, headers: any, res: Response) => void;
streamVideo: (user: UserInterface, fileID: string, headers: any, res: Response, req: Request) => void;
}
export default ChunkInterface;
@@ -1,4 +1,4 @@
import {Response} from "express"
import {Response, Request} from "express"
const awaitStreamVideo = (start: number, end:number, differenceStart: number,
decipher: any, res: Response, streamsToErrorCatch: any[]) => {