4

I currently have a windows media player embedded into my winform on c# and i am now trying to make a button to control the speed of the video play. I currently can use controls to play, pasue and stop, found in ctlcontrols but can't find a way to change the speed of video play through using a button on my form? An example of my code for pausing the video in it is: axWindowsMediaPlayer1.Ctlcontrols.pause(); But i need some code to change the play speed so any help would be much appreciated.

Thanks

Chris Bacon
  • 995
  • 8
  • 30
  • 42

1 Answers1

4

Settings.Rate is what you are looking for: speed is a double, 1.0 being normal speed.

axWindowsMediaPlayer1.settings.rate = speed;

For rewinding:

if (axWindowsMediaPlayer1.controls.isAvailable('FastReverse'))
      axWindowsMediaPlayer1.controls.fastReverse();

For a full scripting reference check the documentation.

BrokenGlass
  • 158,293
  • 28
  • 286
  • 335