C#使用WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer(); 播放后, 停止播放当前音乐 5
usingWMPLib;点击播放button:WMPLib.WindowsMediaPlayerplayer=newWMPLib.WindowsMediaPlayer()...
using WMPLib;
点击播放button:
WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
player.URL = Application.StartupPath + “\\A.mp3”;
点击下一首button(我希望停止播放当前音乐同时换一首歌曲B,可却无法停止。代码如下):
WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
//player.URL = Application.StartupPath + "\\A.mp3";//有没有这条都一样(会听到三首歌,唱一半的第一首歌,刚开始的第一首歌和第二首歌)
player.controls.stop();
player.URL = Application.StartupPath + "\\B.mp3";
player.controls.play()
求教大神,先行拜谢。 展开
点击播放button:
WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
player.URL = Application.StartupPath + “\\A.mp3”;
点击下一首button(我希望停止播放当前音乐同时换一首歌曲B,可却无法停止。代码如下):
WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
//player.URL = Application.StartupPath + "\\A.mp3";//有没有这条都一样(会听到三首歌,唱一半的第一首歌,刚开始的第一首歌和第二首歌)
player.controls.stop();
player.URL = Application.StartupPath + "\\B.mp3";
player.controls.play()
求教大神,先行拜谢。 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询