#1 2023-03-05 22:47

Xalean
Member
Registered: 2023-01-04
Posts: 7

Prevent sleep when audio or video is playing

Hello everyone,

do you know some settings to avoid shutter making windows go to sleep while playing a music cd (maybe it goes to sleep while watching a DVD or a blu-ray?)

Can you make an event to watch player activity as thé one for hard drive activity ?

Thank you for your help.

Last edited by Xalean (2023-03-05 22:48)

Offline

#2 2023-06-28 10:25

Xalean
Member
Registered: 2023-01-04
Posts: 7

Re: Prevent sleep when audio or video is playing

Hello, no answer  there? Please, can you implement an event that look at the dvd drive so that if it is spinning, the sleep is prevented ??

Offline

#3 2023-06-28 11:13

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Prevent sleep when audio or video is playing

There is no universal way of detecting if some application is playing audio or video.

However, some applications do provide their own way of checking its status. For example, your can query the status of Foobar2000 player via its SDK, which can be turned into a monitoring event in Shutter using the Program Output event, as discussed in topic #2673.

You could also try monitoring if a specific application is running via the Window and the Process events, but if won't tell you if the applicaiton is actively playing audio/video content. There is also a full-screen detection event available since v4.6.0.2 Beta, which can be useful for detecting a full screen video.

Offline

#4 2023-06-29 10:38

Xalean
Member
Registered: 2023-01-04
Posts: 7

Re: Prevent sleep when audio or video is playing

Thank you for your answer. I will try to implement that. I nevertheless think that it may be useful to have an event to watch the speed of the dvd player if there is one (and if this is possible).

Keep up the good work, your software is amazing !

Offline

#5 2023-06-30 10:16

Xalean
Member
Registered: 2023-01-04
Posts: 7

Re: Prevent sleep when audio or video is playing

Hello, thank you, it is working pretty well.
The only issue is that it is software dependent. If someone at home is using another software, it will not detect that someone is watching a dvd.


den4b wrote:

There is no universal way of detecting if some application is playing audio or video.

However, some applications do provide their own way of checking its status. For example, your can query the status of Foobar2000 player via its SDK, which can be turned into a monitoring event in Shutter using the Program Output event, as discussed in topic #2673.

You could also try monitoring if a specific application is running via the Window and the Process events, but if won't tell you if the applicaiton is actively playing audio/video content. There is also a full-screen detection event available since v4.6.0.2 Beta, which can be useful for detecting a full screen video.

Offline

Board footer

Powered by FluxBB