| 
					
				 | 
			
			
				@@ -117,6 +117,13 @@ class MVPlayViewController: PQBaseViewController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /// - Parameter isRefresh: <#isRefresh description#> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /// - Returns: <#description#> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     func loadRequestData(isRefresh: Bool = true, isAutoPlay _: Bool = false) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if !isNetConnected() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cShowHUB(superView: nil, msg: "没有网络连接") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            collectionView.mj_footer?.endRefreshing(completionBlock: {[weak self] in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                self?.collectionView.setContentOffset(CGPoint.init(x: 0, y: (self?.collectionView.contentSize.height ?? 0) - (self?.collectionView.frame.height ?? 0)), animated: false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if isRequesting { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -191,12 +198,13 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let indexPath = collectionView.indexPath(for: cell!) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let itemData = itemsList[indexPath?.item ?? 0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if currentIndex != nil, currentIndex?.item == indexPath?.item, PQSingletoVideoPlayer.shared.playControllerView != nil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//            PQSingletoVideoPlayer.shared.resumePlayer() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            PQSingletoVideoPlayer.shared.configPlyer(videoData: itemData, controllerView: cell!.coverImageView, renderMode: .RENDER_MODE_FILL_EDGE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            PQSingletoVideoPlayer.shared.startPlayr() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         currentIndex = indexPath 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        let itemData = itemsList[indexPath?.item ?? 0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         itemData.playProgress = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cell?.pauseBtn.isSelected = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         PQSingletoVideoPlayer.shared.configPlyer(videoData: itemData, controllerView: cell!.coverImageView, renderMode: .RENDER_MODE_FILL_EDGE) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -226,6 +234,10 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let navVc: UINavigationController? = (UIApplication.shared.keyWindow?.rootViewController) as? UINavigationController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             (navVc?.viewControllers.first as? MVHomeController)?.jumpToDetailVc(type: 2, videoData: videoData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         case 4: // 分享好友 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if !isNetConnected() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                cShowHUB(superView: nil, msg: "没有网络连接") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if !PQSingletoWXApiUtil.shared.isInstallWX() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cShowHUB(superView: nil, msg: "您还未安装微信客户端!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -246,6 +258,10 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 分享好友上报 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             reportUpload(isFriend: true, openId: "", shareId: shareId, videoData: videoData) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         case 5: // 分享朋友圈 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if !isNetConnected() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                cShowHUB(superView: nil, msg: "没有网络连接") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if !PQSingletoWXApiUtil.shared.isInstallWX() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cShowHUB(superView: nil, msg: "您还未安装微信客户端!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -317,8 +333,7 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         BFLog(message: "进入到前台") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let navVc: UINavigationController? = (UIApplication.shared.keyWindow?.rootViewController) as? UINavigationController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if navVc?.visibleViewController is MVPlayViewController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            (collectionView.visibleCell() as? MVPlayControlViewCell)?.pauseBtn.isSelected = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            PQSingletoVideoPlayer.shared.startPlayr() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            self.scrollViewDidEndDecelerating(collectionView) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |