使用 WMPLib.WindowsMediaPlayer 在 C# winforms 中恢复暂停的 mp3 文件
使用 WMPLib.WindowsMediaPlayer 我可以播放和暂停 mp3 文件,但无法从暂停点恢复。
谁能告诉我怎么恢复这首歌
谢谢
with WMPLib.WindowsMediaPlayer i am able to play and pause mp3 files but i am not able to resume from the paused point.
Can anybody tell me how to resume the song
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,我认为这很简单,我使用“Pause”方法来暂停歌曲,使用“Play”方法来继续它 ::: 这是我使用的代码,
该代码对我有用,我希望对你有用。
Actually I think that it's quiet easy I use the "Pause" method to pause the song and "Play" method to continue it ::: here is the code that I've used
this code works for me and I hope that works for you.
解决方案是更换媒体播放器。添加对此播放器的引用:
AxWMPLib.AxWindowsMediaPlayer
。我在此项目中找到了参考。我只是更改了播放器参考。调整属性:这个“
moPlayer.Controls.pause()
”变成了“moPlayer.Ctlcontrols.pause()
”,我开始工作了。我希望这有帮助。我这样做了,我的播放器可以暂停和恢复。The solution is change media players. Add a reference to this player:
AxWMPLib.AxWindowsMediaPlayer
. I found a reference in This project.I simply changed the player reference. Tweaked the properties: This "
moPlayer.Controls.pause()
" became "moPlayer.Ctlcontrols.pause()
" and I was in business. I hope this helps. I did this and my player can pause and resume.