你好,请问有解决这个问题么
真机调试video自定义按钮 开始/暂停 不生效<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 }) // this.videoContext.pause() },
2022-06-27