tomayac’s avatartomayac’s Twitter Archive—№ 14,888

    1. 📢 In Chrome, we plan on no longer taking wake locks for invisible videos (see chromium-review.googlesource.com/c/chromium/src/+/2213933). This was used as a "hack" to keep the screen on, which you can do natively now with the Screen Wake Lock API: web.dev/wakelock/. (@_richtr FYI github.com/richtr/NoSleep.js/issues/83#issuecomment-634529118)
  1. …in reply to @tomayac
    If you happen to use NoSleep.js (npmjs.com/package/nosleep.js), be sure to update to version 0.11.0: @_richtr has just merged my PR that adds native Wake Lock API support. 🎉 It'll fall back to the previous invisible video hack for browsers that don't support the new API yet.