摘要: 微信小程序 swiper禁止手动切换 给swiper设置catchtouchmove为true,设置swiper-item的catchtouchmove返回false <swiper class="swiper" indicator-dots="{{false}}" circular autopla 阅读全文
posted @ 2022-03-17 17:36 小菜菜爱吃菜 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 微信小程序多音频场景处理 - 背景音频 提到音频播放控制,不得不提背景音频这个方法wx.getBackgroundAudioManager 很不幸,这个有坑。当使用场景为单音频播放或者不需要记录每个音频播放的位置时,使用它是一个合适的选择。当需要记录每个音频的播放位置时,这个就会有些问题了。问题来源 阅读全文
posted @ 2022-03-17 17:35 小菜菜爱吃菜 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 微信小程序多音频场景处理 背景:页面中有多条数据,每条数据都可以单独播放,不同时播放 核心逻辑就是每个音频单独初始化一个方法,每个音频播放的进度等信息都单独控制 通过wx.createInnerAudioContext来控制 // wxml <view wx:for="{{list}}" wx:ke 阅读全文
posted @ 2022-03-17 17:32 小菜菜爱吃菜 阅读(491) 评论(0) 推荐(0) 编辑