Recommend way to serve files via an HTTP Stream
Is it possible to serve video files by streaming HTTP? Very similar to what this guy is doing in Node.js: https://youtu.be/ZjBLbXUuyWg?si=8-dICa2jrlXMSxrA
AbdisalanCodes
YouTube
How To Code A Video Streaming Server in NodeJS
If you need help ask on discord! https://discord.gg/hAy5r25ncq
How to code a simple server that streams video instead of downloading the whole video.
Coding Begins: 1:53
Download Code: https://github.com/Abdisalan/blog-code-examples/tree/master/http-video-stream
1 Reply
Hi! The easiest way is to upload the video to file storage https://docs.convex.dev/file-storage (if it's one file you can upload it in the convex dashboard). you can use
ctx.storage.getUrl
to get a url that should work in a video
tag. The url already supports Range headers for streaming and buffering.File Storage | Convex Developer Hub
Store and serve files of any type.