pause and resume Windows Media Player in C#

本小妞迷上赌 提交于 2019-12-11 20:11:24

问题


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.



来源:https://stackoverflow.com/questions/3472635/pause-and-resume-windows-media-player-in-c-sharp

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