1

with WMPLib.WindowsMediaPlayer i am able to play and pause mp3 files but i am not able to resume from the paused point.

Can anybody tell me how to resume the song

thanks

user1164706
  • 11
  • 1
  • 3

2 Answers2

1

Actually I think that it's quiet easy I use the "Pause" method to pause the song and "Play" method to continue it ::: here is the code that I've used

WMPLib.WindowsMediaPlayer wmp = new WMPLib.WindowsMediaPlayer();
wmp.url="the mp3 path that you want to play";
//NOTE::: after the above command the mp3 file or other multimedia file will automatically play.

//And for PAUSING use this code:
wmp.controls.pause();

//AND for continue PLAYING use below code:
wmp.controls.play();

this code works for me and I hope that works for you.

Alex
  • 768
  • 1
  • 5
  • 13
Kixz
  • 11
  • 1
0

The solution is change media players. Add a reference to this player:AxWMPLib.AxWindowsMediaPlayer. I found a reference in This project.

I simply changed the player reference. Tweaked the properties: This "moPlayer.Controls.pause()" became "moPlayer.Ctlcontrols.pause()" and I was in business. I hope this helps. I did this and my player can pause and resume.

Peter O.
  • 32,158
  • 14
  • 82
  • 96
Joe
  • 1