Video playback detection with Win32 API?

一曲冷凌霜 提交于 2019-12-13 06:15:33

问题


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.

来源:https://stackoverflow.com/questions/14784221/video-playback-detection-with-win32-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!