我正在使用 WPF MediaElement 播放视频。当 MediaElement 处于暂停状态时,我将其位置设置为视频中的另一点。我希望 MediaElement 中的视频图像刷新以反映新位置。但它不会在我再次按下播放按钮之前更新图像。是否有办法在不调用其播放方法的情况下强制 MediaElement 图像刷新?
代码示例:
代码示例:
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
}