axWindowsMediaPlayer1控件循环播放方法
方法一:
axWindowsMediaPlayer1.settings.setMode("loop",true);
方法二:
在控件的PlayStateChanged事件里加代码:
if ( axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsStopped )
{
axWindowsMediaPlayer1.Ctlcontrols.play();
}
axWindowsMediaPlayer1.settings.setMode("loop",true);
方法二:
在控件的PlayStateChanged事件里加代码:
if ( axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsStopped )
{
axWindowsMediaPlayer1.Ctlcontrols.play();
}
-----------------------------------------------------------------