video在全屏时会旋转180°而非90°或-90°,android中正常,设置direction参数同样无效
1***@163.com
- 发布:2023-05-10 13:06
- 更新:2023-05-10 14:00
- 阅读:284
nvue页面video在ios中全屏错误显示
分类:nvue
1 个回复
1***@163.com (作者)
已解决
<video @fullscreenchange = "fullscreenchange" ></video>
data() {
isStop:false,
isFullCount:0
}
fullscreenchange(e){
if(this.isFullCount == 2){
this.isFullCount = 0
this.isStop = false
return
}
if(this.isStop){
this.isFullCount++
}
if(!this.isStop){
this.video.exitFullScreen()
this.video.requestFullScreen()
this.isStop = true
}
}
不知道是个什么原理,关闭后再打开就正常了