DEV Community

Discussion on: How to Code a Video Streaming Server using NodeJS

Collapse
 
anandbej profile image
anandkumar

I'm not able to stream the video. I'm getting the "Requires Range header" response.
I tried doing const range = "bytes=0-1023"; but that didnt work too. The player just appears and doesnt play the video

Collapse
 
gazee profile image
gazee

i also got same erroot

how it is solve .did u got it?

Collapse
 
cybergen49 profile image
Cyber

I ran into the same error. The fix seems to be to set your Content-Type header before checking for Range.