-2

I am a beginner in C#. I'm trying to create a simple audio player.

WMPLib.WindowsMediaPlayer wplayer = new WMPLib.WindowsMediaPlayer();
wplayer.URL = "my_sound.mp3";
wplayer.controls.stop();

I searched full API about WindowsMediaPlayer but found only https://msdn.microsoft.com/en-us/library/windows/desktop/dd564585(v=vs.85).aspx

Please give me api link to MS library

Shlomi Hassid
  • 6,500
  • 3
  • 27
  • 48
Coffeeman
  • 285
  • 1
  • 6
  • 17
  • Does the control documented there not work for you? What specifically are you looking for, or what's the particular problem? – Ben N Apr 24 '15 at 21:52
  • I want change audio position – Coffeeman Apr 24 '15 at 21:53
  • Ah, perfect. See my answer. (In the future, make sure to ask a *specific* question, as suggested in [How to Ask](http://stackoverflow.com/help/how-to-ask).) – Ben N Apr 24 '15 at 22:02

1 Answers1

1

The full API documentation for the WindowsMediaPlayer control can be found on MSDN here.

To answer the specific question you asked in the comments: Set the CurrentPosition property on the media player control to seek. The value is a double, representing the seconds after the start of the media, so 95 corresponds to 1:35 (m:s), for example.

Ben N
  • 2,883
  • 4
  • 26
  • 49