【小程序BUG反馈】swiper控制显隐video组件IOS不正常问题
当swiper组件由条件进行判断是否显示,初始化隐藏,onLoad后显示,组件video中的视频无法播放
只有IOS无法播放,工具和安卓端正常
IOS之前正常的,后来手机微信升级为6.7.3后,出现了这个BUG
- 当前 Bug 的表现
IOS手机无法播放视频
安卓手机正常
- 预期表现
IOS与安卓端都可以播放视频
- 提供一个最简复现 Demo
< swiper style = "height: 100vh;width: 100vw;background:#010101;" bindchange = "bindchange" > < block wx:if = "{{show==1}}" style = "height: 100vh;width: 100vw;" > < swiper-item style = "height: 100vh;width: 100vw;" > < view class = "zan-col zan-col-24 textac " style = "background:#010101;" > < video src = "{{video_url}}" style = "height:50vh;width: 100vw;" controls ></ video > </ view > </ swiper-item > </ block > </ swiper > |
Page({ data: { show:0, video_url: 'https://qn.jiekeji.com/tmp/wx8294d44ab1aa2cb9.o6zAJs3dSE5s-g_xSkQhrn1AVqTE.WUlax8MI4rkef2d9dd15f05ddf46825462801dbbd70c.mp4' }, onLoad: function (options) { this .setData({ show:1, }) } }) |
3 回复
你不知道swiper组件里面不能放video么。https://developers.weixin.qq.com/miniprogram/dev/component/native-component.html