浏览代码

coding

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 年之前
父节点
当前提交
6845ec60b7
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

+ 6 - 5
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

@@ -182,11 +182,16 @@ class NCPlayerToolBar: UIView {
             }
         }
         
-        // BACK
+        // SLIDER
         playbackSlider.value = Float(currentTime.value)
         MPNowPlayingInfoCenter.default().nowPlayingInfo?[MPNowPlayingInfoPropertyElapsedPlaybackTime] = currentTime.seconds
         playbackSlider.isEnabled = true
         
+        // TIME (START - END)
+        labelCurrentTime.text = NCUtility.shared.stringFromTime(currentTime)
+        labelOverallDuration.text = "-" + NCUtility.shared.stringFromTime(self.durationTime - currentTime)
+        
+        // BACK
         if #available(iOS 13.0, *) {
             backButton.setImage(NCUtility.shared.loadImage(named: "gobackward.10", color: .white), for: .normal)
         } else {
@@ -215,10 +220,6 @@ class NCPlayerToolBar: UIView {
             forwardButton.setImage(NCUtility.shared.loadImage(named: "goforward.10", color: .white, size: 30), for: .normal)
         }
         forwardButton.isEnabled = true
-        
-        // TIME (START - END)
-        labelCurrentTime.text = NCUtility.shared.stringFromTime(currentTime)
-        labelOverallDuration.text = "-" + NCUtility.shared.stringFromTime(self.durationTime - currentTime)
     }
     
     // MARK: - Command Center