Hey Miro
I’am forced by my company that my PC lock itself after 5min of inactivity. And I’am often in meetings where I have to follow presenter via Miro. And maybe already see my wish: After 5min my screen wants to go off.
So my wish is very simple: When following someone in Miro, then should prevent that my screen turn off.
This quite easy with the Wake Lock API. This API is working on different operating systems.
I also wrote a small Tampermonkey-script which works well (until I change the tab).
// ==UserScript==
// @name Screen Wake Lock
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Example of using the Screen Wake Lock API in a Tampermonkey script
// @author Your Name
// @match https://miro.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
let wakeLock = null;
async function requestWakeLock() {
try {
wakeLock = await navigator.wakeLock.request("screen");
console.log('wake lock activated');
} catch (err) {
console.error(`${err.name}, ${err.message}`);
}
}
requestWakeLock();
})();
It is close to that wish: https://community.miro.com/ideas/add-option-to-prevent-the-ipad-from-going-to-sleep-6163