SafeExamBrowser / seb-win-refactoring

Safe Exam Browser for Windows.
https://www.safeexambrowser.org/news_en.html
Mozilla Public License 2.0
165 stars 106 forks source link

Feature: Battery Status API #847

Open pascal-kuschkowitz opened 2 months ago

pascal-kuschkowitz commented 2 months ago

Is your feature request related to a problem? Please describe. In exam conditions with many students and where the laptops cannot be loaded throughout the exam, the person monitoring has no overview of battery life. It would be a huge improvement to know battery percentage and estimated remaining battery life, so that problematic devices can be swapped in time.

Describe the solution you'd like I would like the battery status API implemented. (It was implemented in firefox years ago, but capped for privacy reasons w/ tracking. Since this is an exam browser, those reasons do not seem relevant imo.) Then, one could push the battery percentage and other attributes to the person monitoring with navigator.getBattery().

dbuechel commented 2 months ago

Thanks for the feature request. With SEB Server, you'd already have that functionality readily available (including indicators in the monitoring overview). For other exam systems, we'd indeed need to implement the API ourselves and most likely expose it via the SEB JavaScript API.