private void VideoViewer_OnLoaded(object sender, RoutedEventArgs e) {
if (_loaded) return;
_loaded = true;
try {
Logging.Write("Initialization: " + PluginsManager.Instance.GetPluginDirectory("VLC"));
Player.Initialize(PluginsManager.Instance.GetPluginDirectory("VLC"), @"--ignore-config", @"--no-video-title", @"--no-sub-autodetect-file");
Logging.Write("Player.BeginStop()");
Player.BeginStop(Stopped);
} catch (Exception ex) {
NonfatalError.NotifyBackground(ControlsStrings.VideoViewer_CannotPlay, ControlsStrings.VideoViewer_CannotPlay_Commentary, ex);
Close();
}
}