marinofaggiana 3 years ago
parent
commit
d4669df20f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

+ 3 - 1
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -83,16 +83,18 @@ class NCViewerMediaZoom: UIViewController {
             if !metadata.livePhoto {
                 playerToolBar.isHidden = false
             }
+            imageVideoContainer.image = image
         } else if metadata.classFile == NCCommunicationCommon.typeClassFile.audio.rawValue {
             if image == nil {
                 image = UIImage.init(named: "noPreviewAudio")!.image(color: .gray, size: view.frame.width)
             }
+            imageVideoContainer.image = image
         } else {
             if image == nil {
                 image = UIImage.init(named: "noPreview")!.image(color: .gray, size: view.frame.width)
             }
+            imageVideoContainer.image = image
         }
-        imageVideoContainer.image = image
         
         if NCManageDatabase.shared.getMetadataLivePhoto(metadata: metadata) != nil {
             statusViewImage.image = NCUtility.shared.loadImage(named: "livephoto", color: .gray)