瀏覽代碼

修改拍摄播放器

harry 3 年之前
父節點
當前提交
d0108c33a8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenCameraManager.swift

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

@@ -523,7 +523,7 @@ class BFRecordScreenCameraManager: BFRecordScreenBaseManager {
             CMTimeCompare(mode.timelineCMIn, currentAssetProgress) <= 0 && CMTimeCompare(currentAssetProgress, mode.timelineCMOut) < 0
         }) {
             // true 代表需要换源
-            let su = (assetPlayer?.currentItem?.asset as? AVURLAsset)?.url.lastPathComponent != (mod.locationPath as NSString?)?.lastPathComponent
+            let su = (avplayer.currentItem?.asset as? AVURLAsset)?.url.lastPathComponent != (mod.locationPath as NSString?)?.lastPathComponent
             
             if !su {
                 if avplayer.timeControlStatus == .paused {