WPF MediaElement - 视频暂停和位置重置时图像不会更新

LT *_*Dan 3 wpf mediaelement c#-4.0

我正在使用WPF MediaElement播放视频.当MediaElement暂停时,我将位置设置为视频中的另一个点.我希望MediaElement中的视频图像能够刷新以反映新的位置.但是在我再次按下"播放"按钮之前,它不会更新图像.有没有办法强制MediaElement图像刷新而不调用其Play方法?

代码示例

TimeSpan tsPosition = new TimeSpan(0,0,30);   // set to 30 seconds
MediaElementObj.Position = tsPosition;
 if (PlayStatus == PAUSED) // ignore if not paused
            {
                // image refresh method call here if there is a way to do it
            }
Run Code Online (Sandbox Code Playgroud)

Fed*_*gui 9

将MediaElement上的ScrubbingEnabled属性设置为true.