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

4
我正在使用 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
            }

你有任何可以展示给我们的XAML吗? - TMan
1个回答

11

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接