News for hackers. Stuff that matters.
Re:YouTube is crippling Firefox on Asahi Linux by acdha on Tuesday December 12, 2023 @01:45PM (#38616482)
They don’t need to detect the number of cores, although hardwareConcurrency is right there, but rather simply to ask the browser what it supports:

https://developer.mozilla.org/en-US/docs/Web/API/Media_Capab...

That way you can fall back for anything too old or weird to support that API, and if the vendor complains there’s a simple response: implement the standard.

There are no comments on this comment yet.