marinofaggiana 3 سال پیش
والد
کامیت
92c112cf78
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

+ 2 - 0
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

@@ -269,6 +269,8 @@ class NCPlayerToolBar: UIView {
         if newTime < ncplayer.getVideoDurationSeconds() {
             let time: CMTime = CMTimeMake(value: Int64(newTime * 1000 as Float64), timescale: 1000)
             ncplayer.videoSeek(time: time)
+        } else if newTime >= ncplayer.getVideoDurationSeconds() {
+            ncplayer.videoSeek(time: .zero)
         }
     }