<video>视频组件调用requestFullScreen全屏无效?

发布于 8 年前作者 yan417252 次浏览最后编辑 8 年前来自 ask

最新的小程序开发工具 基础库2.9.4

代码

bindButton:function(e){

this.videoContext = wx.createVideoContext(‘myVideo’,  )

this.videoContext.requestFullScreen({ direction: 0 })

this.videoContext.play()

}

点击全屏按钮时闪了一下屏,为什么全屏失效呢?

2 回复
njiang
njiang1 楼6 年前

是指开发工具模拟器上无法全屏?请直接真机预览测试

yixiuying
yixiuying2 楼6 年前

我手机没问题啊  小米8青春版