<swiper-item catchtap="clickImg" data-idx="{{index}}" data-imgarr="{{shareGoodsData.movies}}">
<image wx:if="{{item.id == 1}}" src="{{item.url}}" class="slide-image" mode="widthFix" />
<video wx:if="{{item.id == 2}}" id="myVideo" custom-cache='{{false}}' objectFit="cover" show-center-play-btn='{{false}}' src='{{item.url}}' bindended='endVideo' show-play-btn='{{false}}' controls='true'>
<cover-image wx:if="{{!bofangBtnState}}" src="/images/play.png" catchtap="bindPlay" class="pause_icon" mode="widthFix"></cover-image>
<cover-view wx:if="{{bofangBtnState}}" catchtap="bindPause" class="pause_text">暂停播放</cover-view>
</video>
</swiper-item>
bindPause(){
console.log("zanting")
const videopause = wx.createVideoContext('myVideo',)
videopause.pause()
this.setData({
bofangBtnState: false
})
},
你好,请问有解决这个问题么
有一种可能是你的video有多个,都用了同一个id,就出问题了
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)