|
@@ -25,7 +25,6 @@ import UIKit
|
|
|
import NCCommunication
|
|
|
|
|
|
protocol NCViewerMediaZoomDelegate {
|
|
|
- func didAppearImageZoom(viewerMediaZoom: NCViewerMediaZoom, metadata: tableMetadata)
|
|
|
func dismissImageZoom()
|
|
|
}
|
|
|
|
|
@@ -118,21 +117,6 @@ class NCViewerMediaZoom: UIViewController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- override func viewDidAppear(_ animated: Bool) {
|
|
|
- super.viewDidAppear(animated)
|
|
|
-
|
|
|
- delegate?.didAppearImageZoom(viewerMediaZoom: self, metadata: metadata)
|
|
|
-
|
|
|
- /*
|
|
|
- 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()
|
|
|
- }
|
|
|
- }
|
|
|
- */
|
|
|
- }
|
|
|
-
|
|
|
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
|
|
super.viewWillTransition(to: size, with: coordinator)
|
|
|
|