Showing
2 changed files
with
3 additions
and
1 deletions
| @@ -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) |
-
Please register or login to post a comment