瀏覽代碼

Update NCPlayerToolBar.swift

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

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

@@ -274,10 +274,12 @@ class NCPlayerToolBar: UIView {
         if ncplayer.isPlay() {
         if ncplayer.isPlay() {
             ncplayer.playerPause()
             ncplayer.playerPause()
             playButton.setImage(NCUtility.shared.loadImage(named: "play.fill", color: .white, symbolConfiguration: UIImage.SymbolConfiguration(pointSize: 30)), for: .normal)
             playButton.setImage(NCUtility.shared.loadImage(named: "play.fill", color: .white, symbolConfiguration: UIImage.SymbolConfiguration(pointSize: 30)), for: .normal)
+            MPNowPlayingInfoCenter.default().nowPlayingInfo?[MPNowPlayingInfoPropertyPlaybackRate] = 0
             timerAutoHide?.invalidate()
             timerAutoHide?.invalidate()
         } else {
         } else {
             ncplayer.playerPlay()
             ncplayer.playerPlay()
             playButton.setImage(NCUtility.shared.loadImage(named: "pause.fill", color: .white, symbolConfiguration: UIImage.SymbolConfiguration(pointSize: 30)), for: .normal)
             playButton.setImage(NCUtility.shared.loadImage(named: "pause.fill", color: .white, symbolConfiguration: UIImage.SymbolConfiguration(pointSize: 30)), for: .normal)
+            MPNowPlayingInfoCenter.default().nowPlayingInfo?[MPNowPlayingInfoPropertyPlaybackRate] = 1
             startTimerAutoHide()
             startTimerAutoHide()
         }
         }
     }
     }