Pārlūkot izejas kodu

1,取到视频素材后进行扶正操作。 2,删除 btn 添加0.25s 时间点击间隔

jsonwang 3 gadi atpakaļ
vecāks
revīzija
4d5be60ddb

+ 4 - 12
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -153,9 +153,7 @@ public class BFRecordScreenController: BFBaseViewController {
             progressThumV.recordItem = itemModel
             rscurrentManager.recordItem = itemModel
             rscurrentManager.resetEnv()
-            if currMediaType == .Video {
-                (cell as? BFVideoCoverViewCell)?.rotationView()
-            }
+ 
         }
     }
     
@@ -330,6 +328,7 @@ public class BFRecordScreenController: BFBaseViewController {
         btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
         btn.addCorner(corner: 6)
         btn.addTarget(self, action: #selector(deleteRecordAction), for: .touchUpInside)
+        btn.eventInterval = 0.25
         btn.isHidden = true
         return btn
     }()
@@ -1195,12 +1194,7 @@ public class BFRecordScreenController: BFBaseViewController {
     }
 
     @objc func deleteRecordAction() {
-        deleteRecordBtn.isEnabled = false
-        DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {[weak self] in
-            guard let wself = self else { return }
-            wself.deleteRecordBtn.isEnabled = true
-        }
-        
+    
         if !isDragingProgressSlder, isStopAtRecordRange != -1, isStopAtRecordRange < itemModels[currItemModelIndex].voiceStickers.count {
             let model = itemModels[currItemModelIndex].voiceStickers[isStopAtRecordRange]
             itemModels[currItemModelIndex].voiceStickers.remove(at: isStopAtRecordRange)
@@ -2339,9 +2333,7 @@ extension BFRecordScreenController: UICollectionViewDelegate, UICollectionViewDa
     public func collectionView(_: UICollectionView, didSelectItemAt _: IndexPath) {}
 
     public func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) {
-        if let currCell = cell as? BFVideoCoverViewCell {
-            currCell.rotationView()
-        }
+ 
     }
     public func scrollViewWillBeginDragging(_: UIScrollView) {
         BFLog(1, message: "开始滚动")