marinofaggiana 3 年之前
父节点
当前提交
ad2b7db144
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayer.swift

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

@@ -86,7 +86,9 @@ class NCPlayer: AVPlayer {
                         if !metadata.livePhoto, let time = NCManageDatabase.shared.getVideoTime(metadata: metadata) {
                             self.seek(to: time)
                         }
-                        playerToolBar?.setBarPlayer(player: self)
+                        DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
+                            playerToolBar?.setBarPlayer(player: self)
+                        }
                     }
                     break
                 case .failed: