marinofaggiana 3 жил өмнө
parent
commit
12d5a7f8b9

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

@@ -552,7 +552,8 @@ extension NCViewerMedia: NCViewerMediaZoomDelegate {
     }
         
     func didAppearImageZoom(viewerMediaZoom: NCViewerMediaZoom, metadata: tableMetadata) {
-                
+         
+        /*
         navigationItem.title = metadata.fileNameView
         currentMetadata = metadata
         currentViewerMediaZoom = viewerMediaZoom
@@ -598,6 +599,7 @@ extension NCViewerMedia: NCViewerMediaZoomDelegate {
                 }
             }
         }
+        */
     }
 }
 

+ 0 - 16
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -25,7 +25,6 @@ import UIKit
 import NCCommunication
 
 protocol NCViewerMediaZoomDelegate {
-    func didAppearImageZoom(viewerMediaZoom: NCViewerMediaZoom, metadata: tableMetadata)
     func dismissImageZoom()
 }
 
@@ -118,21 +117,6 @@ class NCViewerMediaZoom: UIViewController {
         }
     }
     
-    override func viewDidAppear(_ animated: Bool) {
-        super.viewDidAppear(animated)
-        
-        delegate?.didAppearImageZoom(viewerMediaZoom: self, metadata: metadata)
-        
-        /*
-        if (metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue || metadata.classFile == NCCommunicationCommon.typeClassFile.audio.rawValue) && imageVideoContainer.playerLayer == nil {
-            DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
-                self.ncplayer?.setupVideoLayer(imageVideoContainer: self.imageVideoContainer, playerToolBar: self.playerToolBar, metadata: self.metadata)
-                //self.player?.videoPlay()
-            }
-        }
-        */
-    }
-    
     override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
         super.viewWillTransition(to: size, with: coordinator)