|
@@ -365,7 +365,7 @@ class MVHomeController: MVBaseController {
|
|
|
|
|
|
// 卡点模块消失
|
|
|
@objc func stuckPointDismiss() {
|
|
|
- DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.5) { [weak self] in
|
|
|
+ DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) { [weak self] in
|
|
|
self?.controlPlayrPasueOrResume(isPause: false)
|
|
|
}
|
|
|
}
|
|
@@ -418,6 +418,7 @@ extension MVHomeController {
|
|
|
// 控制播放器的暂停或恢复
|
|
|
func controlPlayrPasueOrResume(isPause: Bool) {
|
|
|
let cell: MVBannerCell? = viewListView.collectionView.cellForItem(at: lastBnnerSelectIndex) as? MVBannerCell
|
|
|
+ BFLog(message: " player isPause is \(isPause)")
|
|
|
if isPause {
|
|
|
cell?.pauseView.isHidden = false
|
|
|
PQSingletoVideoPlayer.shared.pausePlayer()
|
|
@@ -426,6 +427,7 @@ extension MVHomeController {
|
|
|
if rootViewController is UINavigationController {
|
|
|
rootViewController = (rootViewController as? UINavigationController)?.visibleViewController
|
|
|
}
|
|
|
+ BFLog(message: "rootViewController is \(rootViewController)")
|
|
|
if rootViewController is MVHomeController {
|
|
|
cell?.pauseView.isHidden = true
|
|
|
PQSingletoVideoPlayer.shared.resumePlayer()
|