hhmx.de

Föderation EN Do 17.04.2025 08:46:41

I wanted to put a video on my website, but I wanted it to adapt to the viewer's bandwidth and screen (you know, how YouTube does, where you get the narrow 240p version if you're on a rubbish mobile connection, but you still get the video). After a bit of research, I worked out how (thank you to Scott Jehl about responsive video via CSS, and mux.com for HLS and ffmpeg instructions) and wrote a quick note in case anybody else needs the same.
kryogenix.org/days/2025/04/16/

Föderation EN Do 17.04.2025 09:03:58

@sil kinda wonder why there's still no native HLS support in most desktop browsers 🤔

Föderation EN Do 17.04.2025 09:05:00

@cheeaun yeah, I was surprised at that; Safari does it, everything else not. For other people who don't know this, hls.js is a nice polyfill which solves the problem, but ideally this shouldn't require JS at all.