How to determine if any video is playing?

How to determine if any video is using , , , or c ?

Video can be played / streamed in any local player, network player or html5 player. We do not know the name of the player, and the player may not be in full screen.

PS. Detecting CPU utilization does not always give the correct result, so this is unacceptable.

0
source share
1 answer

This day I worked a little on this. There is a WIN32API (old school) that gets / sets whether to disable the screen saver (in user32.dll, GetScreenSaverActive (), SetScreenSaverActive - see: http://www.codeproject.com/Articles/17067/Controlling-The-Screen -Saver-With-C ). This is the most likely flag that will be set during video playback, but it is not 100% reliable, since not every player will implement it. It will work for most videos, regardless of whether it is played through the plugin, initially or through DirectX. This also works for most (all?) External players like vlc, windvd etc.

But.

, 100% . ;  1. , iTunes,  2. ( ),  3. /gpu, ,  4. , / reset win32

- (, , , ) , . 100% , , , .

, 100% - , , , 90-95%. , ? , , ...

+2

All Articles