marinofaggiana 3 vuotta sitten
vanhempi
commit
98995b98d7
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

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

@@ -356,7 +356,9 @@ class NCPlayerToolBar: UIView {
         } else if newTime >= durationTime {
             let timeToSubtract: CMTime = CMTimeMakeWithSeconds(3, preferredTimescale: 1)
             newTime = CMTimeSubtract(durationTime, timeToSubtract)
-            ncplayer.videoSeek(time: newTime)
+            if newTime > currentTime {
+                ncplayer.videoSeek(time: newTime)
+            }
         }
         
         reStartTimerAutoHide()