user1211499
user1211499

Reputation: 165

Wpf:MediaElement pause & play again disables speed ratio

I have a mediaElement. I change its speedratio according to my will 1x,2x,3x... It works the very first time but when I pause and play again it simply does not work. It starts playing in 1x speed. Is there anything I am missing?

Upvotes: 3

Views: 1451

Answers (1)

Lummo
Lummo

Reputation: 1169

I have encountered the same problem.

After some experimentation I found setting the SpeedRatio back to 1.0 before calling Play() again then waiting for the Position to change (typically using a timer) and setting SpeedRatio back to the old value seems to work.

Upvotes: 1

Related Questions