فهرست منبع

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