Showing
2 changed files
with
7 additions
and
0 deletions
| @@ -54,6 +54,9 @@ export struct PlayerComponent { | @@ -54,6 +54,9 @@ export struct PlayerComponent { | ||
| 54 | this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => { | 54 | this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => { |
| 55 | if(width>height){ | 55 | if(width>height){ |
| 56 | this.isLarge = false | 56 | this.isLarge = false |
| 57 | + if(width > 2){ | ||
| 58 | + this.liveStreamType = 0 | ||
| 59 | + } | ||
| 57 | }else{ | 60 | }else{ |
| 58 | this.isLarge = true | 61 | this.isLarge = true |
| 59 | } | 62 | } |
| @@ -187,6 +187,10 @@ export class WDAliPlayerController { | @@ -187,6 +187,10 @@ export class WDAliPlayerController { | ||
| 187 | if(this.onVideoSizePlayerTitleComponentBack){ | 187 | if(this.onVideoSizePlayerTitleComponentBack){ |
| 188 | this.onVideoSizePlayerTitleComponentBack(this.avPlayer?.getVideoWidth(), this.avPlayer?.getVideoHeight()); | 188 | this.onVideoSizePlayerTitleComponentBack(this.avPlayer?.getVideoWidth(), this.avPlayer?.getVideoHeight()); |
| 189 | } | 189 | } |
| 190 | + | ||
| 191 | + if(this.onVideoSizePlayerComponentBack){ | ||
| 192 | + this.onVideoSizePlayerComponentBack(this.avPlayer?.getVideoWidth(), this.avPlayer?.getVideoHeight()); | ||
| 193 | + } | ||
| 190 | if (this.onCanplay) { | 194 | if (this.onCanplay) { |
| 191 | this.onCanplay() | 195 | this.onCanplay() |
| 192 | } else { | 196 | } else { |
-
Please register or login to post a comment