コード例 #1
0
        private void MpcMessageReceived(MpchcLocalMediaPlayer.MpcMessage m)
        {
            if (_localMediaPlayer.State == PlayState.Playing)
                mpcStatusLabel.Text = "Playing";

            if (_localMediaPlayer.State == PlayState.Stopped)
                mpcStatusLabel.Text = "Stopped";

            if (_localMediaPlayer.State == PlayState.Paused)
                mpcStatusLabel.Text = "Paused";
        }
コード例 #2
0
 public MainWindow()
 {
     InitializeComponent();
     _localMediaPlayer = new MpchcLocalMediaPlayer(Handle);
 }