Explorar o código

fix updateToolBar every 1 sec

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana %!s(int64=3) %!d(string=hai) anos
pai
achega
a4550992e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()
             }
         })