Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screensaver turns on during video call? #9516

Open
nickvergessen opened this issue May 10, 2023 · 7 comments
Open

Screensaver turns on during video call? #9516

nickvergessen opened this issue May 10, 2023 · 7 comments

Comments

@nickvergessen
Copy link
Member

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Ref https://mastodon.social/@[email protected]/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
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Contributor

ShGKme commented Nov 22, 2023

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.

@ShGKme
Copy link
Contributor

ShGKme commented Dec 20, 2024

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

Supported since v126 (14 May 2024). Not a blocker anymore.

@ShGKme
Copy link
Contributor

ShGKme commented Dec 20, 2024

But it is only available with HTTPS. For HTTP we can:

  • Always play a hidden video in the background (more resources usage)
  • Ignore (not so critical)

@nickvergessen
Copy link
Member Author

For HTTP we can:

We don't care. HTTP does not support media access unless domain is localhost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants