Wmplib.WindowsMediaPlayer, pause() function doesn't work on c#

242 Views Asked by At

I am currently working with WmpLib.WindowsMediaPlayer () but when I click on play after clicking pause the music starts again at the beginning instead of continuing and I do not understand why.

Could someone explain to me?

private void play_Click(object sender, EventArgs e)
    {
        player = new WMPLib.WindowsMediaPlayer();
        player.URL = SoundFilePath;
        player.controls.play();
    }


private void pause_Click(object sender, EventArgs e)
   {
       player.controls.pause();
   }
0

There are 0 best solutions below