marinofaggiana 3 년 전
부모
커밋
a9e4b637fb
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

+ 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()
         }
     }