소스 검색

Update NCPlayer.swift

Marino Faggiana 2 년 전
부모
커밋
f7aa8bb623
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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()
     }