<video class=“wxParse-video-video " id=“myVideo” src=”{{item.videoUrl}}" initial-time="{{item.currentTime}}" controls="{{!false}}" autoplay="{{true}}" custom-cache="{{false}}" loop="{{true}}" bindtimeupdate=“eventPlayupdate” bindfullscreenchange=“eventFullScreen” data-index="{{index}}" wx:if="{{item.isPlay}}">
<cover-view class=‘cover-qp’ bindtap=‘showCover’ wx:if="{{showCover}}"></cover-view>
<cover-view class=‘cover-qp’ bindtap=‘hiddenCover’ wx:if="{{hiddenCover}}"></cover-view>
</video>
//视频
onReady(res) {
this.videoContext = wx.createVideoContext(‘myVideo’, this)
},
//视频全屏
showCover(e) {
this.videoContext.requestFullScreen()
this.setData({
showCover: false,
hiddenCover: true
})
},
//退出全屏
hiddenCover(e) {
this.videoContext.exitFullScreen()
this.setData({
showCover: true,
hiddenCover: false
})
},
video进入全屏跟退出全屏都存在闪烁跟抖动,或者就点击video组件的右下角的全屏按钮也同样存在这种情况?有什么办法解决嘛?
麻烦提供出现问题的机型和微信版本,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)