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
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
Beta Was this translation helpful? Give feedback.
All reactions