Bläddra i källkod

删除后自动播放当前视频

Chris 5 år sedan
förälder
incheckning
6cc970600f

+ 2 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/ViewController/CommunityVideoListController.swift

@@ -245,7 +245,7 @@ extension CommunityVideoListController: UICollectionViewDelegateFlowLayout,UICol
 // MARK: - Logic
 extension CommunityVideoListController {
     
-    func startPlay(_ cell: CommunityVideoCoverCollectionCell?) {        
+    func startPlay(_ cell: CommunityVideoCoverCollectionCell?) {
         cell?.play()
     }
     
@@ -365,6 +365,7 @@ extension CommunityVideoListController {
         SwiftMoyaNetWorkServiceCommunity.shared().communityDeleteApi(postId: postId) { [weak self] (data) -> (Void) in
             self?.videoItemList?.remove(at: row)
             self?.collectionView.reloadData()
+            self?.playFirstVideoWhenViewDidAppeared()
         }
     }
 }