|
@@ -295,12 +295,12 @@ extension MVHomeController: MVBannerDataSource, MVBannerDelegate {
|
|
|
func changePlayerStatus(indexPath: IndexPath) {
|
|
|
let cell: MVBannerCell? = banner.collectionView.cellForItem(at: indexPath) as? MVBannerCell
|
|
|
|
|
|
- if PQSingletoVideoPlayer.shared.player.isPlaying() {
|
|
|
+ if PQSingletoVideoPlayer.shared.isPlaying {
|
|
|
cell?.pauseView.isHidden = false
|
|
|
- PQSingletoVideoPlayer.shared.stopPlayer(isRemove: false)
|
|
|
+ PQSingletoVideoPlayer.shared.pausePlayer()
|
|
|
|
|
|
} else {
|
|
|
- PQSingletoVideoPlayer.shared.resetPlayer()
|
|
|
+ PQSingletoVideoPlayer.shared.resumePlayer()
|
|
|
cell?.pauseView.isHidden = true
|
|
|
}
|
|
|
}
|