Hacker News new | ask | show | jobs
by meindnoch 785 days ago
YouTube and Netflix are resource intensive webapps? What is so resource intensive about them? A <video> element?
3 comments

That would be the case if the Netflix UI was a search box where you type in the name of a movie and then it starts playing.

The actual UI is a lot more complex. On the front page there are dozens of dynamic categories that are filled out with high-res thumbnail images, and the content starts autoplaying within a few seconds when you stop on an item.

Now, I’m not saying that’s necessarily a good interface (personally I hate overactive autoplay). But from an engineering POV, clearly there’s a bunch of prefetching and cache management that needs to happen to make that UI look seamless, without loading pauses or missing content at any step. And media caches do qualify as “resource intensive.”

You can turn that autoplay off now in the settings.
Widevine DRM for Netflix. AV1 decoding and the SPA for YouTube.
On my Mac with Safari, Youtube uses VP9, even with 4k HDR material. Apple Silicon Macs have VP9 hardware decoding, so the load is very small.

I have never experienced audio stutter and delays like the upthread commenter claims.

Apple's M3 has AV1 hardware decoding, so I imagine that shouldn't be a massive issue in the future.
Not for YouTube, but Netflix DRM possibly?
You think DRM is implemented in software? :D