wangliang_wd

feat:回滚视频详情页全屏转屏逻辑

... ... @@ -78,6 +78,7 @@ export struct DetailPlayShortVideoPage {
* 页面转屏参数变化
*/
displayDirectionChange(){
///增加定时器,配合转屏UI布局
let timer = setTimeout(() => {
this.isFullScreen = this.displayDirection === DisplayDirection.VERTICAL ?false:true
clearTimeout(timer)
... ... @@ -403,10 +404,10 @@ export struct DetailPlayShortVideoPage {
.height('100%')
.width('100%')
.onAreaChange(() => {
let timer = setTimeout(() => {
// let timer = setTimeout(() => {
this.calculatePlayerRect()
clearTimeout(timer)
}, this.displayDirection === DisplayDirection.VERTICAL ?200:0)
// clearTimeout(timer)
// }, this.displayDirection === DisplayDirection.VERTICAL ?200:0)
})
}
... ...