소스 검색

fix

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 년 전
부모
커밋
8caae3a8a0
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 2
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift
  2. 0 2
      iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

+ 4 - 2
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

@@ -453,8 +453,10 @@ class NCPlayerToolBar: UIView {
         }
         
         if let pictureInPictureController = pictureInPictureController, pictureInPictureController.isPictureInPicturePossible {
-            pictureInPictureController.startPictureInPicture()
-            NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterHidePlayerToolBar, userInfo: ["ocId":metadata.ocId])
+            DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
+                pictureInPictureController.startPictureInPicture()
+                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterHidePlayerToolBar, userInfo: ["ocId":metadata.ocId])
+            }
         }
     }
     

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

@@ -123,8 +123,6 @@ class NCViewerMediaZoom: UIViewController {
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
         
-        imageVideoContainer.image = image
-
         viewerMedia?.navigationController?.navigationBar.prefersLargeTitles = false
         viewerMedia?.navigationItem.title = metadata.fileNameView