王士厅

fix: 沉浸式视频播放,视频A播放,下滑或上滑切其它视频,再次上滑或下滑切换视频A,修改为重播

@@ -118,7 +118,7 @@ export struct DetailPlayShortVideoPage { @@ -118,7 +118,7 @@ export struct DetailPlayShortVideoPage {
118 if (!this.onlyWifiLoadVideo) { 118 if (!this.onlyWifiLoadVideo) {
119 await this.playerController.pause() 119 await this.playerController.pause()
120 } else { 120 } else {
121 - await this.playerController.play() 121 + this.playerController.resetPlay()
122 await this.playerController.startRenderFrame(() => { 122 await this.playerController.startRenderFrame(() => {
123 this.imageVisible = false 123 this.imageVisible = false
124 }) 124 })
@@ -29,7 +29,9 @@ export struct PlayerProgressView { @@ -29,7 +29,9 @@ export struct PlayerProgressView {
29 this.showLoading = true 29 this.showLoading = true
30 } 30 }
31 this.timer = setTimeout(() => { 31 this.timer = setTimeout(() => {
  32 + if (this.playerController?.getPlayer()) {
32 ToastUtils.shortToast('网络出小差了,请检查下网络') 33 ToastUtils.shortToast('网络出小差了,请检查下网络')
  34 + }
33 }, 10000) 35 }, 10000)
34 } else { 36 } else {
35 clearTimeout(this.timer) 37 clearTimeout(this.timer)