|
@@ -405,8 +405,7 @@ extension MVHomeController {
|
|
|
cell?.progressView.progress = 0
|
|
|
let videoInfo = self.mAllVideos[page]
|
|
|
videoInfo.playProgress = 0
|
|
|
- PQSingletoVideoPlayer.shared.configPlyer(videoData: videoInfo, controllerView: cell!.converView)
|
|
|
- PQSingletoVideoPlayer.shared.startPlayr()
|
|
|
+
|
|
|
let hotVideoIndex = self.mVideos.firstIndex(where: { (items) -> Bool in
|
|
|
items.categoryName == videoInfo.categoryName
|
|
|
})
|
|
@@ -422,6 +421,10 @@ extension MVHomeController {
|
|
|
self.categoryCollectionView.scrollToItem(at: IndexPath(row: hotVideoIndex ?? 0, section: 0), at: .centeredHorizontally, animated: true)
|
|
|
|
|
|
self.lastBnnerSelectIndex = IndexPath(row: page, section: 0)
|
|
|
+
|
|
|
+ PQSingletoVideoPlayer.shared.configPlyer(videoData: videoInfo, controllerView: cell!.converView)
|
|
|
+ PQSingletoVideoPlayer.shared.startPlayr()
|
|
|
+
|
|
|
|
|
|
} else {
|
|
|
BFLog(message: "播放不成功: cell:\(String(describing: cell)) mVideos:\(self.mVideos.count) showProtocal: is \(String(describing: showProtocal))")
|