marinofaggiana 3 năm trước cách đây
mục cha
commit
a9e4b637fb
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  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()
         }
     }