Browse Source

播放完成后重置进度条

jsonwang 3 years ago
parent
commit
c8b7d2ff54
1 changed files with 5 additions and 0 deletions
  1. 5 0
      BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

+ 5 - 0
BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

@@ -266,6 +266,11 @@ class PQStuckPointCuttingView: UIView {
         BFLog(message: "progress is \(progress) i \(selectIndex) 命中的位置:\(CGFloat(selectIndex) * oneMarginTime)")
         drawLayer.strokeColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue).cgColor
         drawLayer.setNeedsDisplay()
+        
+        if(progress >= 0.99){
+            BFLog(message: "播放完成 重新更新 UI ")
+            resetDefaultsColor()
+        }
 
     }