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
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.
精彩评论