You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by Taiizor November 29, 2024
Hello,
I am using WebView2 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 to no. When reviewing its code, I noticed that it uses ES_CONTINUOUS.
Discussed in #4956
Originally posted by Taiizor November 29, 2024
Hello,
I am using WebView2 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
The text was updated successfully, but these errors were encountered: