I'm making an VoIP application and I just want to be able to pause and resume (and probably check the player state) of Windows Media Player. Solutions I've found on SO refer to WMPLib but this is for embedding WMP in my .NET application. I simply just want to pause and resume the current instance if there is one. Is there documentation for this somewhere?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
One way to do this would be with a plugin for WMP that you could then call. WMPKeys does something like this (only it interacts via global keystrokes.) It's on sourceforge, so its source may be available.
Windows 7 does know how to adjust system volume during times when the microphone is on; rather than pausing, you might want to just adjust volume instead.