|
@@ -269,20 +269,29 @@ class PQStuckPointCuttingView: UIView {
|
|
|
|
|
|
if(progress >= 0.99){
|
|
|
BFLog(message: "播放完成 重新更新 UI ")
|
|
|
- resetDefaultsColor()
|
|
|
+ resetDefaultsColor(clearData: false)
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// 竖线恢复到原有色值
|
|
|
- func resetDefaultsColor() {
|
|
|
+ func resetDefaultsColor(clearData:Bool = true) {
|
|
|
for layer in lineLayerArray {
|
|
|
layer.strokeColor = UIColor.hexColor(hexadecimal: "#999999").cgColor
|
|
|
layer.setNeedsDisplay()
|
|
|
}
|
|
|
-
|
|
|
- isUserDrag = false
|
|
|
- isDrawLine = false
|
|
|
+ if(clearData == true){
|
|
|
+ lineLayerArray.removeAll()
|
|
|
+ if(rateView.layer.sublayers != nil){
|
|
|
+ for (index,layer) in rateView.layer.sublayers!.enumerated() {
|
|
|
+ layer.removeFromSuperlayer()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ isUserDrag = false
|
|
|
+ isDrawLine = false
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/// 生成波纹
|
|
@@ -348,7 +357,7 @@ class PQStuckPointCuttingView: UIView {
|
|
|
if(videoDidEndDragging != nil){
|
|
|
videoDidEndDragging!(1,startTime,startTime + CGFloat(stuckPointEndTime - stuckPointStartTime),0)
|
|
|
}
|
|
|
- resetDefaultsColor()
|
|
|
+ resetDefaultsColor(clearData: false)
|
|
|
PQEventTrackViewModel.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_shanyinApp_musicVideoPreview_musicPeriodSelect, pageSource: .sp_shanyinApp_main, extParams: nil, remindmsg: "")
|
|
|
|
|
|
|