|
@@ -973,7 +973,14 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
|
|
|
// 更新裁剪时间条的的ui数据
|
|
|
stuckPointCuttingView.videoDuration = max(CGFloat(finallyUserAudioTime), CGFloat(finallyStuckPoints.last!))
|
|
|
- stuckPointCuttingView.updateEndTime(startTime: CGFloat(CMTimeGetSeconds(playeTimeRange.start)), endTime: CGFloat(CMTimeGetSeconds(playeTimeRange.end)))
|
|
|
+ let counn = (stuckPointMusicData?.rhythmSdata[0].pointTimes.count)! - 2
|
|
|
+ let suggestRhythmStartTime = CGFloat(stuckPointMusicData?.suggestRhythmStartTime ?? 0)
|
|
|
+ let suggestRhythmEndTime = max(suggestRhythmStartTime, CGFloat(stuckPointMusicData?.rhythmSdata[0].pointTimes[max(counn, 0)] ?? 0)/CGFloat(BASE_FILTER_TIMESCALE))
|
|
|
+ stuckPointCuttingView.updateEndTime(
|
|
|
+ startTime: CGFloat(CMTimeGetSeconds(playeTimeRange.start)),
|
|
|
+ endTime: CGFloat(CMTimeGetSeconds(playeTimeRange.end)),
|
|
|
+ suggestRhythmStartTime: suggestRhythmStartTime,
|
|
|
+ suggestRhythmEndTime: suggestRhythmEndTime)
|
|
|
|
|
|
// 2,创建滤镜
|
|
|
DispatchQueue.global().async {
|