Showing
1 changed file
with
4 additions
and
8 deletions
| @@ -306,9 +306,9 @@ export struct DetailPlayShortVideoPage { | @@ -306,9 +306,9 @@ export struct DetailPlayShortVideoPage { | ||
| 306 | onHeightDidChange: (height: number) => { | 306 | onHeightDidChange: (height: number) => { |
| 307 | this.playerWidth = px2vp(this.windowWidth) | 307 | this.playerWidth = px2vp(this.windowWidth) |
| 308 | this.playerHeight = px2vp(this.windowHeight - height) | 308 | this.playerHeight = px2vp(this.windowHeight - height) |
| 309 | - Logger.debug(TAG, | ||
| 310 | - "height: " + px2vp(height) + " ===> 视频高度: " + this.playerHeight + " window height: " + | ||
| 311 | - px2vp(this.windowHeight)) | 309 | + // Logger.debug(TAG, |
| 310 | + // "height: " + px2vp(height) + " ===> 视频高度: " + this.playerHeight + " window height: " + | ||
| 311 | + // px2vp(this.windowHeight)) | ||
| 312 | } | 312 | } |
| 313 | }) | 313 | }) |
| 314 | this.playerViewBuilder() | 314 | this.playerViewBuilder() |
| @@ -332,13 +332,9 @@ export struct DetailPlayShortVideoPage { | @@ -332,13 +332,9 @@ export struct DetailPlayShortVideoPage { | ||
| 332 | .layoutWeight(1) | 332 | .layoutWeight(1) |
| 333 | .onClick(() => { | 333 | .onClick(() => { |
| 334 | this.playerController?.switchPlayOrPause(); | 334 | this.playerController?.switchPlayOrPause(); |
| 335 | + this.isPlay = !this.isPlay | ||
| 335 | this.playerController.onStatusChange = (status: number) => { | 336 | this.playerController.onStatusChange = (status: number) => { |
| 336 | this.status = status | 337 | this.status = status |
| 337 | - if (status === PlayerConstants.STATUS_PAUSE) { | ||
| 338 | - this.isPlay = false | ||
| 339 | - } else if (status === PlayerConstants.STATUS_START) { | ||
| 340 | - this.isPlay = true | ||
| 341 | - } | ||
| 342 | } | 338 | } |
| 343 | }) | 339 | }) |
| 344 | 340 |
-
Please register or login to post a comment