|
@@ -154,14 +154,14 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo
|
|
|
return
|
|
|
}
|
|
|
let indexPath = collectionView.indexPath(for: cell!)
|
|
|
- if currentIndex != nil, currentIndex?.item == indexPath?.item {
|
|
|
- PQSingletoVideoPlayer.shared.resumePlayer()
|
|
|
- return
|
|
|
- }
|
|
|
+// if currentIndex != nil, currentIndex?.item == indexPath?.item {
|
|
|
+// PQSingletoVideoPlayer.shared.resumePlayer()
|
|
|
+// return
|
|
|
+// }
|
|
|
currentIndex = indexPath
|
|
|
- var itemData = itemsList[indexPath?.item ?? 0]
|
|
|
+ let itemData = itemsList[indexPath?.item ?? 0]
|
|
|
itemData.playProgress = 0
|
|
|
- PQSingletoVideoPlayer.shared.configPlyer(videoData: itemData, controllerView: cell!.coverImageView)
|
|
|
+ PQSingletoVideoPlayer.shared.configPlyer(videoData: itemData, controllerView: cell!.coverImageView, renderMode: .RENDER_MODE_FILL_EDGE)
|
|
|
PQSingletoVideoPlayer.shared.resetPlayer()
|
|
|
}
|
|
|
|
|
@@ -253,7 +253,7 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo
|
|
|
let navVc: UINavigationController? = (UIApplication.shared.keyWindow?.rootViewController) as? UINavigationController
|
|
|
if navVc?.visibleViewController is MVPlayViewController {
|
|
|
(collectionView.visibleCell() as? MVPlayControlViewCell)?.pauseBtn.isSelected = true
|
|
|
- PQSingletoVideoPlayer.shared.stopPlayer(isRemove:false)
|
|
|
+ PQSingletoVideoPlayer.shared.stopPlayer(isRemove: false)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -265,4 +265,8 @@ extension MVPlayViewController: UICollectionViewDelegate, UICollectionViewDataSo
|
|
|
PQSingletoVideoPlayer.shared.startPlayr()
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ override open var preferredStatusBarStyle: UIStatusBarStyle {
|
|
|
+ return .lightContent
|
|
|
+ }
|
|
|
}
|