wuyanan

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

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