Преглед на файлове

还原原有调用旋转方法

jsonwang преди 3 години
родител
ревизия
87b9444176
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

+ 7 - 0
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -153,6 +153,10 @@ public class BFRecordScreenController: BFBaseViewController {
             progressThumV.recordItem = itemModel
             rscurrentManager.recordItem = itemModel
             rscurrentManager.resetEnv()
+            if currMediaType == .Video {
+                (cell as? BFVideoCoverViewCell)?.rotationView()
+            }
+
  
         }
     }
@@ -2333,6 +2337,9 @@ 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) {