wangliang_wd

feat:优化直播界面转屏逻辑

... ... @@ -345,7 +345,7 @@ export struct PlayUIComponent {
.width(24)
.height(24)
.onClick(() => {
clearTimeout(this.time)
WindowModel.shared.setSpecificSystemBarEnabled(false)
this.displayDirection =
... ... @@ -354,7 +354,9 @@ export struct PlayUIComponent {
WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
window.Orientation.PORTRAIT :
window.Orientation.LANDSCAPE)
window.Orientation.LANDSCAPE).then(()=>{
this.onChangeMenuVisible()
})
})
... ... @@ -452,10 +454,13 @@ export struct PlayUIComponent {
}
quitFullScreen() {
clearTimeout(this.time)
this.displayDirection = DisplayDirection.VERTICAL
WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
window.Orientation.PORTRAIT :
window.Orientation.LANDSCAPE)
window.Orientation.LANDSCAPE).then(()=>{
this.onChangeMenuVisible()
})
WindowModel.shared.setSpecificSystemBarEnabled(true)
}
}
\ No newline at end of file
... ...