王士厅

fix: 横版视频全屏LANDSCAPE_INVERTED替换为LANDSCAPE

@@ -43,13 +43,13 @@ export class devicePLSensorManager { @@ -43,13 +43,13 @@ export class devicePLSensorManager {
43 requestOrientation = window.Orientation.LANDSCAPE; 43 requestOrientation = window.Orientation.LANDSCAPE;
44 } 44 }
45 else if (orientation > 225 && orientation < 315) { 45 else if (orientation > 225 && orientation < 315) {
46 - requestOrientation = window.Orientation.LANDSCAPE_INVERTED; 46 + requestOrientation = window.Orientation.LANDSCAPE;
47 } 47 }
48 if (targetOrientation == window.Orientation.PORTRAIT && requestOrientation == window.Orientation.PORTRAIT) { 48 if (targetOrientation == window.Orientation.PORTRAIT && requestOrientation == window.Orientation.PORTRAIT) {
49 WindowModel.shared.setPreferredOrientation(window.Orientation.AUTO_ROTATION_RESTRICTED); 49 WindowModel.shared.setPreferredOrientation(window.Orientation.AUTO_ROTATION_RESTRICTED);
50 sensor.off(sensor.SensorId.ACCELEROMETER); 50 sensor.off(sensor.SensorId.ACCELEROMETER);
51 } 51 }
52 - if (targetOrientation == window.Orientation.LANDSCAPE && (requestOrientation == window.Orientation.LANDSCAPE || requestOrientation == window.Orientation.LANDSCAPE_INVERTED)) { 52 + if (targetOrientation == window.Orientation.LANDSCAPE && (requestOrientation == window.Orientation.LANDSCAPE || requestOrientation == window.Orientation.LANDSCAPE)) {
53 WindowModel.shared.setPreferredOrientation(window.Orientation.AUTO_ROTATION_RESTRICTED); 53 WindowModel.shared.setPreferredOrientation(window.Orientation.AUTO_ROTATION_RESTRICTED);
54 sensor.off(sensor.SensorId.ACCELEROMETER); 54 sensor.off(sensor.SensorId.ACCELEROMETER);
55 } 55 }
@@ -122,7 +122,7 @@ export struct PlayUIComponent { @@ -122,7 +122,7 @@ export struct PlayUIComponent {
122 this.displayDirection = DisplayDirection.VERTICAL 122 this.displayDirection = DisplayDirection.VERTICAL
123 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 123 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
124 window.Orientation.PORTRAIT : 124 window.Orientation.PORTRAIT :
125 - window.Orientation.LANDSCAPE_INVERTED) 125 + window.Orientation.LANDSCAPE)
126 WindowModel.shared.setSpecificSystemBarEnabled(true) 126 WindowModel.shared.setSpecificSystemBarEnabled(true)
127 127
128 }) 128 })
@@ -354,7 +354,7 @@ export struct PlayUIComponent { @@ -354,7 +354,7 @@ export struct PlayUIComponent {
354 354
355 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 355 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
356 window.Orientation.PORTRAIT : 356 window.Orientation.PORTRAIT :
357 - window.Orientation.LANDSCAPE_INVERTED) 357 + window.Orientation.LANDSCAPE)
358 358
359 359
360 }) 360 })
@@ -53,7 +53,7 @@ export struct PlayerTitleComponent { @@ -53,7 +53,7 @@ export struct PlayerTitleComponent {
53 .onClick(() => { 53 .onClick(() => {
54 WindowModel.shared.setPreferredOrientation((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ? 54 WindowModel.shared.setPreferredOrientation((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ?
55 window.Orientation.PORTRAIT : 55 window.Orientation.PORTRAIT :
56 - window.Orientation.LANDSCAPE_INVERTED) 56 + window.Orientation.LANDSCAPE)
57 WindowModel.shared.setSpecificSystemBarEnabled(true) 57 WindowModel.shared.setSpecificSystemBarEnabled(true)
58 this.isLarge = false 58 this.isLarge = false
59 this.displayDirection = DisplayDirection.VERTICAL 59 this.displayDirection = DisplayDirection.VERTICAL
@@ -44,7 +44,7 @@ export struct PlayerUIComponent { @@ -44,7 +44,7 @@ export struct PlayerUIComponent {
44 WindowModel.shared.setSpecificSystemBarEnabled(false) 44 WindowModel.shared.setSpecificSystemBarEnabled(false)
45 this.displayDirection = DisplayDirection.VIDEO_HORIZONTAL 45 this.displayDirection = DisplayDirection.VIDEO_HORIZONTAL
46 WindowModel.shared.setPreferredOrientation( 46 WindowModel.shared.setPreferredOrientation(
47 - window.Orientation.LANDSCAPE_INVERTED) 47 + window.Orientation.LANDSCAPE)
48 if(this.playerController){ 48 if(this.playerController){
49 // if(this.playerController.onVideoSizePlayerUIComponentMethod){ 49 // if(this.playerController.onVideoSizePlayerUIComponentMethod){
50 // this.playerController.onVideoSizePlayerUIComponentMethod(1,2) 50 // this.playerController.onVideoSizePlayerUIComponentMethod(1,2)
@@ -76,7 +76,7 @@ export struct PlayerVideoControlComponent { @@ -76,7 +76,7 @@ export struct PlayerVideoControlComponent {
76 WindowModel.shared.setSpecificSystemBarEnabled(false) 76 WindowModel.shared.setSpecificSystemBarEnabled(false)
77 this.displayDirection = DisplayDirection.VIDEO_HORIZONTAL 77 this.displayDirection = DisplayDirection.VIDEO_HORIZONTAL
78 WindowModel.shared.setPreferredOrientation( 78 WindowModel.shared.setPreferredOrientation(
79 - window.Orientation.LANDSCAPE_INVERTED) 79 + window.Orientation.LANDSCAPE)
80 if(this.playerController){ 80 if(this.playerController){
81 // if(this.playerController.onVideoSizePlayerUIComponentMethod){ 81 // if(this.playerController.onVideoSizePlayerUIComponentMethod){
82 // this.playerController.onVideoSizePlayerUIComponentMethod(1,2) 82 // this.playerController.onVideoSizePlayerUIComponentMethod(1,2)
@@ -481,7 +481,7 @@ export struct DetailPlayShortVideoPage { @@ -481,7 +481,7 @@ export struct DetailPlayShortVideoPage {
481 DisplayDirection.VERTICAL 481 DisplayDirection.VERTICAL
482 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 482 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
483 window.Orientation.PORTRAIT : 483 window.Orientation.PORTRAIT :
484 - window.Orientation.LANDSCAPE_INVERTED) 484 + window.Orientation.LANDSCAPE)
485 485
486 486
487 }) 487 })
@@ -146,7 +146,7 @@ export struct DetailVideoListPage { @@ -146,7 +146,7 @@ export struct DetailVideoListPage {
146 this.displayDirection = DisplayDirection.VERTICAL 146 this.displayDirection = DisplayDirection.VERTICAL
147 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 147 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
148 window.Orientation.PORTRAIT : 148 window.Orientation.PORTRAIT :
149 - window.Orientation.LANDSCAPE_INVERTED) 149 + window.Orientation.LANDSCAPE)
150 } 150 }
151 } 151 }
152 152
@@ -157,7 +157,7 @@ export struct VideoChannelDetail { @@ -157,7 +157,7 @@ export struct VideoChannelDetail {
157 this.displayDirection = DisplayDirection.VERTICAL 157 this.displayDirection = DisplayDirection.VERTICAL
158 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 158 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
159 window.Orientation.PORTRAIT : 159 window.Orientation.PORTRAIT :
160 - window.Orientation.LANDSCAPE_INVERTED) 160 + window.Orientation.LANDSCAPE)
161 } 161 }
162 } 162 }
163 163
@@ -76,7 +76,7 @@ export struct PlayerFullScreenView { @@ -76,7 +76,7 @@ export struct PlayerFullScreenView {
76 DisplayDirection.VERTICAL 76 DisplayDirection.VERTICAL
77 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 77 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
78 window.Orientation.PORTRAIT : 78 window.Orientation.PORTRAIT :
79 - window.Orientation.LANDSCAPE_INVERTED) 79 + window.Orientation.LANDSCAPE)
80 }) 80 })
81 Text(this.getTitle()) 81 Text(this.getTitle())
82 .fontSize(18) 82 .fontSize(18)
@@ -63,7 +63,7 @@ export struct WDPlayerRenderView { @@ -63,7 +63,7 @@ export struct WDPlayerRenderView {
63 } 63 }
64 64
65 this.playerController.onVideoSizeChange = (width: number, height: number) => { 65 this.playerController.onVideoSizeChange = (width: number, height: number) => {
66 - // console.log(`WDPlayerRenderView onVideoSizeChange width:${width} videoTop:${height}`) 66 + console.log(`WDPlayerRenderView onVideoSizeChange width:${width} videoTop:${height}`)
67 Logger.info(TAG, ` onVideoSizeChange width:${width} height:${height}`) 67 Logger.info(TAG, ` onVideoSizeChange width:${width} height:${height}`)
68 this.videoWidth = width; 68 this.videoWidth = width;
69 this.videoHeight = height; 69 this.videoHeight = height;