private void Stopped() {
try {
string source = null;
Application.Current.Dispatcher.Invoke(() => {
if (!_window.IsActive) return;
source = Animated;
});
if (source == null || !File.Exists(source)) return;
_playing = false;
// Player.LoadMediaWithOptions(source, ":avcodec-hw=dxva2");
Player.LoadMedia(source);
Player.Play();
} catch (Exception e) {
NonfatalError.NotifyBackground(ControlsStrings.VideoViewer_CannotPlay, ControlsStrings.VideoViewer_CannotPlay_Commentary, e);
}
}