|
@@ -518,9 +518,17 @@ class BFRecordScreenCameraManager: BFRecordScreenBaseManager {
|
|
|
let su = (avplayer.currentItem?.asset as? AVURLAsset)?.url.lastPathComponent != (mod.locationPath as NSString?)?.lastPathComponent
|
|
|
|
|
|
if !su {
|
|
|
- if avplayer.timeControlStatus == .paused && needPlay{
|
|
|
- avplayer.play()
|
|
|
+ if avplayer.timeControlStatus == .paused { // 同源且暂停的时候,需要修改进度
|
|
|
setCoverImage(currentAssetProgress)
|
|
|
+
|
|
|
+ let tt = currentAssetProgress - mod.timelineCMIn
|
|
|
+ avplayer.currentItem?.seek(to: tt, toleranceBefore: CMTime(value: 1, timescale: 1_000_000), toleranceAfter: CMTime(value: 1, timescale: 1_000_000), completionHandler: { [weak avplayer] _ in
|
|
|
+
|
|
|
+ if needPlay {
|
|
|
+ avplayer?.play()
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
|
|
|
}
|
|
|
return
|