瀏覽代碼

Update NCPlayerToolBar.swift

Marino Faggiana 2 年之前
父節點
當前提交
eb947f3ec2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

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

@@ -226,7 +226,7 @@ class NCPlayerToolBar: UIView {
     }
 
     func playButtonPlay() {
-        
+
         playButton.setImage(NCUtility.shared.loadImage(named: "play.fill", color: .white, symbolConfiguration: UIImage.SymbolConfiguration(pointSize: 30)), for: .normal)
         MPNowPlayingInfoCenter.default().nowPlayingInfo?[MPNowPlayingInfoPropertyPlaybackRate] = 0
     }
@@ -245,6 +245,7 @@ class NCPlayerToolBar: UIView {
         case .began:
             playbackSliderEvent = .began
         case .moved:
+            ncplayer.playerPosizion(newPosition)
             playbackSliderEvent = .moved
         case .ended:
             ncplayer.playerPosizion(newPosition)