张善主

fix(直播liveStreamType为空处理): 根据视频内容确定大小屏

@@ -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 {