Video playback detection with Win32 API?

2019-09-06 16:03发布

is there a way to detect if video playback is running or not with Win32 API?

For audio, I can detect playback processes by:

  1. enumerate playback devices with MMDeviceEnumerator and,
  2. 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.

0条回答
登录 后发表回答