王士厅

fix: 沉浸式视频网络差提示toast逻辑优化

... ... @@ -304,10 +304,11 @@ export struct DetailPlayShortVideoPage {
}
})
this.playerViewBuilder()
PlayerBottomView({
playerController: this.playerController
})
if(this.index === this.currentIndex) {
PlayerBottomView({
playerController: this.playerController
})
}
PlayerRightView({
playerController: this.playerController
... ...
... ... @@ -30,13 +30,10 @@ export struct PlayerProgressView {
if (this.onlyWifiLoadVideo) {
this.showLoading = true
}
// console.log("PlayerProgressView11", this.timer)
if(this.timer) {
clearTimeout(this.timer)
}
this.timer = setTimeout(() => {
ToastUtils.shortToast('网络出小差了,请检查下网络')
}, 10000)
// console.log("PlayerProgressView11", this.timer)
} else {
// console.log("PlayerProgressView22", this.timer)
clearTimeout(this.timer)
... ...