开发者

Windows Media Player Embedded in C# Video Speed Change

开发者 https://www.devze.com 2023-01-23 23:56 出处:网络
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 pla

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消