Yeah this is exactly the problem!

You need a backend that can stream the resources instead of just loading it in one single file.

In my eyes you are having two options:

1. You can use a hosting service that can do this for you pike you are already doing with youtube

Maybe nostr.build is an option (or other). You can upload it there and the add a standalone player to your website which plays the stream after loading the site.

2. You can code your own server which streams the video. You can build such a thing with node.js with like 50 lines of code. You can find plenty of examples on how to do this online.

The down side here is that after coding you have to host this small server code somewhere.

After that you can add a player to your website like in option 1.

If you are not into coding servers I would recommend you option 1. It’s much easier to achieve your goal.

Reply to this note

Please Login to reply.

Discussion

Cool, thanks so much for explaining the difference between the two options.

I think using a hosting service is my best option. I've switched the hosting of the video to satellite.earth CDN. It works, although the site seems to load a bit slower. I don't think it automatically lowers the stream quality haha

Welcome