Selaa lähdekoodia

Merge branch 'master' of https://git.yishihui.com/iOS/BFRecordScreenKit

* 'master' of https://git.yishihui.com/iOS/BFRecordScreenKit:
  还原原有调用旋转方法
harry 3 vuotta sitten
vanhempi
commit
2dd8f2d0f0

+ 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) {