问题
In my application, I play a video file using the MediaElement
control, and I need to have fast forward and rewind options. For fast forward, I increased the SpeedRatio
, but how can I implement fast rewind? I want to play the video in reverse (in appropriate speed ratio).
回答1:
You could set the MediaElement.ScrubbingEnabled
property to true, and pause the MediaElement, and then periodically change its MediaElement.Position
property backwards to mimic the rewinding behaviour.
来源:https://stackoverflow.com/questions/10880331/media-element-rewind