marinofaggiana 3 жил өмнө
parent
commit
047abaea40

+ 6 - 0
iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

@@ -118,6 +118,12 @@ class NCViewerImageZoom: UIViewController {
         delegate?.didAppearImageZoom(viewerImageZoom: self, metadata: metadata)
     }
     
+    override func viewDidLayoutSubviews() {
+        super.viewDidLayoutSubviews()
+        
+        NCViewerVideo.shared.videoLayer?.frame = self.imageView.layer.bounds
+    }
+    
     //MARK: - NotificationCenter
     
     @objc func orientationChanged(notification : NSNotification) {

+ 2 - 2
iOSClient/Viewer/NCViewerVideo/NCViewerVideo.swift

@@ -36,9 +36,9 @@ class NCViewerVideo: NSObject {
     private var timeObserver: Any?
     private var rateObserver: Any?
     private var metadata: tableMetadata?
-    private var videoLayer: AVPlayerLayer?
-    private var player: AVPlayer?
     
+    public var videoLayer: AVPlayerLayer?
+    public var player: AVPlayer?
     public var viewerVideoToolBar: NCViewerVideoToolBar?
     public var pictureInPictureOcId: String = ""