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)
         }
     }