marinofaggiana 3 жил өмнө
parent
commit
a9e4b637fb

+ 2 - 4
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -128,10 +128,8 @@ class NCViewerMediaZoom: UIViewController {
         super.viewDidAppear(animated)
         
         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()
-            }
+            self.ncplayer?.setupVideoLayer(imageVideoContainer: self.imageVideoContainer, playerToolBar: self.playerToolBar, metadata: self.metadata)
+            //self.player?.videoPlay()
         }
     }