张善主

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

... ... @@ -54,6 +54,9 @@ export struct PlayerComponent {
this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => {
if(width>height){
this.isLarge = false
if(width > 2){
this.liveStreamType = 0
}
}else{
this.isLarge = true
}
... ...
... ... @@ -187,6 +187,10 @@ export class WDAliPlayerController {
if(this.onVideoSizePlayerTitleComponentBack){
this.onVideoSizePlayerTitleComponentBack(this.avPlayer?.getVideoWidth(), this.avPlayer?.getVideoHeight());
}
if(this.onVideoSizePlayerComponentBack){
this.onVideoSizePlayerComponentBack(this.avPlayer?.getVideoWidth(), this.avPlayer?.getVideoHeight());
}
if (this.onCanplay) {
this.onCanplay()
} else {
... ...