video进入全屏有抖动
发布于 6 年前 作者 fwan 4256 次浏览 来自 问答

<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组件的右下角的全屏按钮也同样存在这种情况?有什么办法解决嘛?

3 回复

麻烦提供出现问题的机型和微信版本,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

遇到相同的问题,安卓时有上述现象,IOS没有。请问问题解决了吗?

官网能否尽快回复一下

回到顶部