Эх сурвалжийг харах

fix

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 жил өмнө
parent
commit
8caae3a8a0

+ 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