ソースを参照

fix updateToolBar every 1 sec

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 年 前
コミット
a4550992e2
1 ファイル変更1 行追加1 行削除
  1. 1 1
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

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

@@ -150,7 +150,7 @@ class NCPlayer: NSObject {
         
         // Evey 1 second update toolbar
         observerAVPlayertTime = player?.addPeriodicTimeObserver(forInterval: CMTimeMakeWithSeconds(1, preferredTimescale: 1), queue: .main, using: { (CMTime) in
-            if self.player?.currentItem?.status == .readyToPlay, let playerToolBar = self.playerToolBar {
+            if self.player?.currentItem?.status == .readyToPlay {
                 self.playerToolBar?.updateToolBar()
             }
         })