瀏覽代碼

Coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 3 年之前
父節點
當前提交
fa4039ff6e

+ 2 - 2
iOSClient/Menu/NCViewer+Menu.swift

@@ -102,7 +102,7 @@ extension NCViewer {
         //
         // CONVERSION VIDEO TO MPEG4 (MFFF Lib)
         //
-        #if MFFFLIB
+#if MFFFLIB
         if metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue {
             
             actions.append(
@@ -117,7 +117,7 @@ extension NCViewer {
                 )
             )
         }
-        #endif
+#endif
         
         //
         // SAVE IMAGE / VIDEO

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

@@ -459,9 +459,9 @@ class NCPlayer: NSObject {
                     self.url = url
                     self.isProxy = urlVideo.isProxy
                     if requiredConvert {
-                        #if MFFFLIB
+#if MFFFLIB
                         self.convertVideo(withAlert: false)
-                        #endif
+#endif
                     } else {
                         self.openAVPlayer()
                     }

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

@@ -286,12 +286,12 @@ class NCPlayerToolBar: UIView {
         guard let metadata = self.metadata, ncplayer != nil, !metadata.livePhoto else { return }
         if metadata.classFile != NCCommunicationCommon.typeClassFile.video.rawValue && metadata.classFile != NCCommunicationCommon.typeClassFile.audio.rawValue { return }
 
-        #if MFFFLIB
+#if MFFFLIB
         if MFFF.shared.existsMFFFSession(url: URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(metadata.ocId, fileNameView: metadata.fileNameView))) {
             self.hide()
             return
         }
-        #endif
+#endif
 
         timerAutoHide?.invalidate()
         if enableTimerAutoHide {