nextcloud / spreed

🗨️ Nextcloud Talk – chat, video & audio calls for Nextcloud
https://nextcloud.com/talk
GNU Affero General Public License v3.0
1.59k stars 421 forks source link

Screensaver turns on during video call? #9516

Open nickvergessen opened 1 year ago

nickvergessen commented 1 year ago

How to use GitHub


Ref https://mastodon.social/@TobiasLaabs@norden.social/110345885136117897

Steps to reproduce

  1. Join call in Chrome on Linux Mint or Windows with camera and mic on
  2. Don't use keyboard or microphone

Expected behaviour

Screen and OS stay active

Actual behaviour

Screensaver turns on

Talk app

Talk app version: 16.0.x

fancycode commented 1 year ago

You could use the Screen Wake Lock API to prevent the screensaver on Chrome browsers: https://developer.chrome.com/articles/wake-lock/ https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API

nickvergessen commented 1 year ago

I just tried it locally. Had everything closed but Firefox in the first test run and Chrome in the second test run. The other call participant was on a different device to not interfere. OS was Ubuntu 23.04

So screensaver started nor did the screen lock, which happened after the 1 minute was over from ending the call.

nickvergessen commented 1 year ago

I had the same issue twice this week.

No camera on, but I was actively speaking and my screens turned of. I was using Chromium on Ubuntu 🐱

ShGKme commented 7 months ago

Can reproduce on Chrome and Talk Desktop. A bit weird, because a web-browser should keep the machine awake when there is video/audio playing.

Screen Wake Lock API should solve the problem, but it is not supported by Mozilla.

We can use Wake Lock API with a polyfill that just adds hidden small video in a background.