王士厅
... ... @@ -56,6 +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
}
... ...