|
@@ -413,9 +413,10 @@ public class PQGPUImagePlayerView: UIView {
|
|
strongSelf.animationLayer?.timeOffset = strongSelf.playbackTime
|
|
strongSelf.animationLayer?.timeOffset = strongSelf.playbackTime
|
|
if strongSelf.showProgressLab {
|
|
if strongSelf.showProgressLab {
|
|
if duration < 1 {
|
|
if duration < 1 {
|
|
- strongSelf.progressLab.text = "\(currTime.formatDurationToHMS()) / 00:01"
|
|
|
|
|
|
+
|
|
|
|
+ strongSelf.progressLab.text = "\((currTime - Double(CMTimeGetSeconds(movie.startTime ?? .zero))).formatDurationToHMS()) / 00:01"
|
|
} else {
|
|
} else {
|
|
- strongSelf.progressLab.text = "\(currTime.formatDurationToHMS()) / \(duration.formatDurationToHMS())"
|
|
|
|
|
|
+ strongSelf.progressLab.text = "\((currTime - Double(CMTimeGetSeconds(movie.startTime ?? .zero))).formatDurationToHMS()) / \( (duration - Double(CMTimeGetSeconds(movie.startTime ?? .zero))).formatDurationToHMS())"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|