Replies: 1 comment 1 reply
-
I've never tried this, so don't have an answer for you. Only suggestion I've got is to try calling Cef.UIThreadTaskFactory.StartNew(delegate
{
//DO SOMETHING
}); If that doesn't work then you'll probably need to ask on https://www.magpcss.org/ceforum/viewforum.php?f=6 Also uou can search the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using CefSharp in my WPF project to play a looping video. However, as long as the window remains open, neither the screensaver activates nor does the system go to sleep.
Below is a code snippet I tried as a solution, but it didn't resolve the issue:
Additionally, I tried using launcher arguments like
--disable-background-timer-throttling --disable-renderer-backgrounding --disable-backgrounding-occluded-windows
, but these didn’t work either.Interestingly, the issue is resolved in MpvPlayer by setting the
stop-screensaver
option tono
. When reviewing its code, I noticed that it usesES_CONTINUOUS
.https://github.com/mpv-player/mpv/blob/a283f66ede58e0182ac8cd4c930238144427fa74/video/out/w32_common.c#L2326
Beta Was this translation helpful? Give feedback.
All reactions