Skip to content

Prevent screen blanking/screensaver #777

@dmke

Description

@dmke

Describe the problem

On my machine, the screen blanks (and actually locks) after 5min of inactivity (i.e. no mouse or keyboard input). For company policy reasons, I cannot disable that behaviour.

It is a bit of an annoyance, when my monitor goes into sleep mode in the middle of a sentence, as it takes a moment to recover from that...

Describe the proposed solution

Browsers usually prevent screensavers from activating, when they play media (and NoSleep.js promises to provide such a functionality).

I'm not sure why the video/audio tracks of LiveKit itself don't count towards this behaviour.

Speculation

I presume this is because the tracks don't actually originate from a user input event, such as a button click?

For example, the local video track already exists in the <PreJoin/> prefab, even before I click on the "Join" button. And remote tracks of course are added without user interaction at all.

There's also the Screen Wake Lock API, but Firefox support is missing:

image

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions