skip to Main Content

Amazon web services – How to get a fragment of an mp4 video file from the middle, but keep the file metadata using nodejs aws

export async function* initiateObjectStream( Key: string, start: number, end: number, ): AsyncGenerator<any, any, unknown> { const streamRange = `bytes=${start}-${end}`; const getObjectCommand = new GetObjectCommand({ Bucket: bucket, Key, Range: streamRange, }); const { Body: chunks} = await s3Client.send(getObjectCommand); for await (const…

VIEW QUESTION
Back To Top
Search