소스 검색

Update NCPlayer.swift

Marino Faggiana 1 년 전
부모
커밋
982a078cfa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

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

@@ -163,7 +163,7 @@ class NCPlayer: NSObject {
 
         guard let position = player?.position, metadata.classFile == NKCommon.TypeClassFile.video.rawValue else { return }
 
-        if let width = width, let height = height {
+        if isPlay(), let width = width, let height = height {
             player?.saveVideoSnapshot(at: fileNamePreviewLocalPath, withWidth: Int32(width), andHeight: Int32(height))
         }