Showing
2 changed files
with
1 additions
and
3 deletions
| @@ -290,6 +290,7 @@ export struct DetailPlayShortVideoPage { | @@ -290,6 +290,7 @@ export struct DetailPlayShortVideoPage { | ||
| 290 | .onClick(() => { | 290 | .onClick(() => { |
| 291 | this.playerController?.switchPlayOrPause(); | 291 | this.playerController?.switchPlayOrPause(); |
| 292 | this.playerController.onStatusChange = (status: number) => { | 292 | this.playerController.onStatusChange = (status: number) => { |
| 293 | + this.status = status | ||
| 293 | if (status === PlayerConstants.STATUS_PAUSE) { | 294 | if (status === PlayerConstants.STATUS_PAUSE) { |
| 294 | this.isPlay = false | 295 | this.isPlay = false |
| 295 | } else if(status === PlayerConstants.STATUS_START) { | 296 | } else if(status === PlayerConstants.STATUS_START) { |
| @@ -17,9 +17,6 @@ export struct PlayerProgressView { | @@ -17,9 +17,6 @@ export struct PlayerProgressView { | ||
| 17 | @Consume onlyWifiLoadVideo: boolean | 17 | @Consume onlyWifiLoadVideo: boolean |
| 18 | aboutToAppear() { | 18 | aboutToAppear() { |
| 19 | if (this.playerController) { | 19 | if (this.playerController) { |
| 20 | - this.playerController.onStatusChange = (status: number) => { | ||
| 21 | - this.status = status | ||
| 22 | - } | ||
| 23 | this.playerController.onSeekDone = (status: number) => { | 20 | this.playerController.onSeekDone = (status: number) => { |
| 24 | this.playerController?.play() | 21 | this.playerController?.play() |
| 25 | } | 22 | } |
-
Please register or login to post a comment