wangliang_wd

feat:优化视频详情页转屏切换

... ... @@ -81,7 +81,7 @@ export struct DetailPlayShortVideoPage {
let timer = setTimeout(() => {
this.isFullScreen = this.displayDirection === DisplayDirection.VERTICAL ?false:true
clearTimeout(timer)
}, this.displayDirection === DisplayDirection.VERTICAL ?200:0)
}, 200)
}
/**
... ... @@ -509,7 +509,7 @@ export struct DetailPlayShortVideoPage {
this.playerFullscreenBuilder()
}
if (this.displayDirection === DisplayDirection.VIDEO_HORIZONTAL && this.index === this.currentIndex) {
if (this.isFullScreen && this.index === this.currentIndex) {
PlayerFullScreenView({
playerController: this.playerController
})
... ...