video 打开页面就执行全屏播放api 导致屏幕旋转后标题栏依然存在
将video单独放在一个页面,需求: 进入页面video自动全屏 代码: onReady() { this.videoContext = wx.createVideoContext('myVideo'); this.videoContext.requestFullScreen(); // 添加延时不会出现此问题 // setTimeout(() => { // // 进入页面就全屏 会导致标题栏也会旋转并显示 无法隐藏,添加>=400毫秒的延时再全屏 不会出现问题 // this.videoContext.requestFullScreen(); // }, 500); }, 截图: [图片]