- From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
- Date: Mon, 03 Jun 2024 09:18:59 +0000
- To: public-device-apis-log@w3.org
@reillyeon in the group's earlier discussion (https://github.com/w3c/battery/issues/10#issuecomment-309101737) embedded Google Maps and YouTube players were mentioned. Given these are popular embeds, I expect this may in part contribute to the wide range of top-level origins and relatively high use of this API as seen in metrics. One of the use cases mention for YouTube was [selecting the most appropriate codec](https://groups.google.com/a/chromium.org/g/blink-dev/c/sUs1KsQaXjA/m/6L2qqRe0AAAJ). I did not find a mention of the use case for Google Maps yet. The YouTube use case sounds similar to the use case identified by the Code Charity community in https://github.com/code-charity/youtube/pull/2292 and what is demonstrated by [Battery Considerate Loading](https://adaptive-loading.web.app/cra-battery-considerate-loading/) ([source](https://github.com/GoogleChromeLabs/adaptive-loading/blob/master/cra-battery-considerate-loading/src/components/BatteryConsiderateMedia/index.js)). With these samples at hand, it appears web developers want to have a level of control over this experience. For example, in the latter case only a static image is shown if a developer-defined battery threshold is crossed, and also the resolution is chosen based on the battery status. In this same fashion, a codec could be switched to a less power-hungry or the user reminded up front to plug in if the movieRuntime > dischargingTime. It looks like web developers are creative in crafting solutions but it is quite time-consuming to unearth all the creative uses. I updated the real-world examples list https://github.com/w3c/battery/issues/25#issuecomment-2137363100 accordingly. -- GitHub Notification of comment by anssiko Please view or discuss this issue at https://github.com/w3c/battery/issues/25#issuecomment-2144702854 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 3 June 2024 09:19:00 UTC