|
@@ -73,6 +73,8 @@ class BFRecordScreenCameraManager : BFRecordScreenBaseManager{
|
|
|
|
|
|
guard let wself = self else { return }
|
|
|
|
|
|
+
|
|
|
+ BFLog(message: "当前播放器状态: \(wself.avplayer.timeControlStatus.rawValue) \(wself.avplayer.currentItem?.status.rawValue)")
|
|
|
// 拖动的跳跃,不要修改时间点
|
|
|
if (wself.dele?.isNormalPlaying ?? false){
|
|
|
wself.currentAssetProgress = CMTime(seconds: (currTime + wself.currPlayTime).seconds, preferredTimescale: 1000)
|
|
@@ -80,8 +82,12 @@ class BFRecordScreenCameraManager : BFRecordScreenBaseManager{
|
|
|
// BFLog(1, message: "拖动 currTime: \(currTime.seconds)")
|
|
|
DispatchQueue.main.async {[weak self] in
|
|
|
guard let wself = self else { return }
|
|
|
- wself.dele?.updateSubtitle(time: wself.currentAssetProgress)
|
|
|
- wself.locationTo(time: wself.currentAssetProgress)
|
|
|
+ //add by ak 播放状态才进行刷新 UI
|
|
|
+ if(wself.avplayer.timeControlStatus == .playing){
|
|
|
+ wself.dele?.updateSubtitle(time: wself.currentAssetProgress)
|
|
|
+ wself.locationTo(time: wself.currentAssetProgress)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}) as? NSKeyValueObservation
|