Home > database >  Video Streaming 500 error in production (NextJS)
Video Streaming 500 error in production (NextJS)

Time:12-28

I have been developing this site: enter image description here

So it did:

let range = req.headers.range
if(!range) range = 'bytes=0-'

...

But there still was a problem I thought it was about the path, then i changed this:

const videoPath = 'public/assets/mirobod.webm'

to tis:

const videoName = 'mirobod.webm'
const videoPath = path.resolve('public/assets/', videoName)

And it succeeded!

  • Related