marinofaggiana 3 years ago
parent
commit
15d3e4144d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

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

@@ -90,9 +90,10 @@ class NCPlayer: NSObject {
                         }
                         self.durationSeconds = CMTimeGetSeconds(duration)
                         self.saveDurationSeconds(self.durationSeconds)
-                        DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
+                        //DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
                             playerToolBar?.setBarPlayer(ncplayer: self)
-                        }
+                        //}
+                        self.generatorImagePreview()
                     }
                     break
                 case .failed: