private void ShowWebPage(MediaItem mediaItem, IReadOnlyCollection <MediaItem>?currentMediaItems) { if (mediaItem.FilePath == null) { return; } var vm = (MediaViewModel)DataContext; vm.IsWebPage = !mediaItem.IsPdf; // mirror will only work if the media window is full-screen (rather than windowed) var showMirrorWindow = mediaItem.UseMirror && mediaItem.AllowUseMirror && !IsWindowed; int.TryParse(mediaItem.ChosenPdfPage, out var pdfStartingPage); _webDisplayManager.ShowWeb( mediaItem.FilePath, mediaItem.Id, pdfStartingPage, mediaItem.ChosenPdfViewStyle, showMirrorWindow, _optionsService.WebScreenPosition); // show the header for a few seconds _webNavHeaderAdmin.PreviewWebNavHeader(); if (currentMediaItems != null) { HideImageOrSlideshow(currentMediaItems); } }
private void ShowWebPage(MediaItem mediaItem, IReadOnlyCollection <MediaItem> currentMediaItems) { var vm = (MediaViewModel)DataContext; vm.IsWebPage = !mediaItem.IsPdf; var showMirrorWindow = mediaItem.UseMirror && mediaItem.AllowUseMirror; _webDisplayManager.ShowWeb( mediaItem.FilePath, mediaItem.Id, showMirrorWindow, _optionsService.WebScreenPosition); // show the header for a few seconds _webNavHeaderAdmin.PreviewWebNavHeader(); HideImageOrSlideshow(currentMediaItems); }