Explorar el Código

Update NCPlayer.swift

Marino Faggiana hace 2 años
padre
commit
f7aa8bb623
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

+ 4 - 0
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

@@ -164,6 +164,10 @@ class NCPlayer: NSObject {
         if let width = width, let height = height, withSnapshot {
             player?.saveVideoSnapshot(at: fileNamePreviewLocalPath, withWidth: Int32(width), andHeight: Int32(height))
         }
+        
+        if let position = player?.position {
+            NCManageDatabase.shared.addVideo(metadata: metadata, position: position)
+        }
 
         player?.pause()
     }