Ver código fonte

使用 timer 驱动 播放音频

jsonwang 3 anos atrás
pai
commit
9bb406d2a1

+ 1 - 2
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenCameraManager.swift

@@ -91,8 +91,6 @@ class BFRecordScreenCameraManager: BFRecordScreenBaseManager {
 //                wself.currentAssetProgress = CMTime(seconds: (currTime + wself.currPlayTime).seconds, preferredTimescale: 1000)
 
                 BFLog(message: "当前播放器状态: \(wself.avplayer.timeControlStatus.rawValue) \(wself.currentAssetProgress.seconds)")
-
-                wself.playRecordVoice()
             }
 //            BFLog(1, message: "拖动 currTime: \(currTime.seconds)")
             DispatchQueue.main.async { [weak self] in
@@ -711,6 +709,7 @@ class BFRecordScreenCameraManager: BFRecordScreenBaseManager {
 
         checkCurrentPlayStatus()
         prepareToPlayNext()
+        playRecordVoice()
     }
 
     func timerForRecord(currTime _: CMTime) {