问题
is there a way to detect if video playback is running or not with Win32 API?
For audio, I can detect playback processes by:
- enumerate playback devices with MMDeviceEnumerator and,
- for each device, enumerate sessions with IaudiosessionManager.
I'd like to do the similar thing for video playback. Ideally, a method that works for any application, but if it is impossible, a method that works for specific framework (DirectShow, Media Foundation, etc.) is ok.
Thanks.
来源:https://stackoverflow.com/questions/14784221/video-playback-detection-with-win32-api