Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
2b46a73378

+ 3 - 0
iOSClient/Menu/NCViewer+Menu.swift

@@ -250,6 +250,9 @@ extension NCViewer {
                         title: NSLocalizedString("_modify_", comment: ""),
                         icon: NCUtility.shared.loadImage(named: "pencil.tip.crop.circle"),
                         action: { _ in
+                            if metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue {
+                                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterPauseMedia)
+                            }
                             NCFunctionCenter.shared.openDownload(metadata: metadata, selector: NCGlobal.shared.selectorLoadFileQuickLook)
                         }
                     )

+ 0 - 5
iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift

@@ -241,11 +241,6 @@ class NCViewerMediaPage: UIViewController {
               let fileName = userInfo["fileName"] as? String,
               let sessionSelector = userInfo["sessionSelector"] as? String
         else { return }
-
-        let metadata = metadatas[currentIndex]
-        if metadata.serverUrl == serverUrl, metadata.fileName == fileName, metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue, sessionSelector == NCGlobal.shared.selectorUploadFileNODelete {
-            
-        }
     }
 
     @objc func uploadedFile(_ notification: NSNotification) {