System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using WMPLib player=new WMPLib.WindowsMediaPlayerClass(); WMPLib.WindowsMediaPlayer Player; double (); Player.PlayStateChange += new WMPLib. NewState"></param> private void Player_PlayStateChange(int NewState) { if ((WMPLib.WMPPlayState )NewState == WMPLib.WMPPlayState.wmppsStopped) { this.Close();
类: using System; using System.Collections.Generic; using System.Text; using WMPLib; namespace WMP
get { return (this.posy); } } private void PlayFile(String url) { WMPLib.WindowsMediaPlayer Player = new WMPLib.WindowsMediaPlayer(); Player.URL = url; Player.controls.play
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, WMPLib_TLB
//music_plan.Text = "测试"; //如果播放器的状态是正在播放中 if (musicPlayer.playState == WMPLib.WMPPlayState.wmppsPlaying