wuyanan

ref |> 调整竖屏直播竖屏流播放器裁剪模式为fit,不进行裁剪

... ... @@ -56,17 +56,11 @@ export struct PlayerComponent {
this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => {
if(width>height){
this.isLarge = false
if(this.liveStreamType == 1) { ///后台选择的是竖屏流,实际流画面是横屏,展示样式和安卓保持一致
this.isLarge = true
this.playerController?.setScaleMode(AliScaleMode.SCALE_ASPECT_FILL)
return
}
if(width > 2){
this.liveStreamType = 0
}
}else{
this.isLarge = true
this.playerController?.setScaleMode(AliScaleMode.SCALE_ASPECT_FILL)
}
}
}
... ...