- 官方map组件,markers中的callout气泡BUG
map组件中,使用markers中的callout气泡来弹出信息,注意这里的操作,如果设置为byclick的话,正常来讲你点击一个新的气泡的时候,之前展开的气泡会关闭,但经测试这个功能在安卓中是失效的,在IOS中保持正常。我查看官方交流版块,这个问题已经提出很长时间了,官方可以更新一下吗,很小的BUG
2018-11-21 - 小程序安卓熄屏状态下无法给getBackgroundAudioManager赋值
表现:安卓客户端熄屏状态下无法播放下一首声音,报错 已经设置后台阔以播放配置的前提下, "requiredBackgroundModes": [ "audio" ] 小程序监听播放完成事件,触发下一首播放逻辑,播放逻辑主要是给backgroundAudioManager设置新资源 const backgroundAudioManager = wx.getBackgroundAudioManager() Page({ data: { img: "", title: "", singer: "", isPlay: false, index: 0, currentSource: {}, list: [ { id: 589322102, title: "开篇", albumId: 3595841, albumName: 'cppp', albumTitle: "", cover: "https://imagev2.xmcdn.com/group54/M03/BE/89/wKgLclw1y2PjEND8AAGN2SKPPNM391.jpg!op_type=3&columns=290&rows=290", src: "https://aod.cos.tx.xmcdn.com/group62/M03/C8/9F/wKgMZ10CGTOzvH2PAAWkNYbQNNE614.m4a", }, { id: 588766344, title: "第一首", intro: "", albumName: 'www', albumId: 3595841, albumTitle: "", cover: "https://imagev2.xmcdn.com/storages/908e-audiofreehighqps/EB/3E/GMCoOR4HTROmAAZkOAHOdIR8.jpeg", src: "https://aod.cos.tx.xmcdn.com/group62/M07/C8/99/wKgMcV0CGOCTGc4zAAMNLnb_ZI0380.m4a", }, { title: "第二首", intro: "", albumName: 'whmhhh', albumId: 3595841, albumTitle: "", cover: "https://imagev2.xmcdn.com/storages/8e37-audiofreehighqps/0B/C7/GMCoOSYHSmcmAAwXEwHMq3Jp.jpeg", src: "https://aod.cos.tx.xmcdn.com/group62/M07/C8/92/wKgMcV0CGMewDkbUAAGoaM7zIss224.m4a", } ], }, onLoad: function (options) { this.getData(); this.init() }, init() { backgroundAudioManager.onEnded(() => { this.nextplay(); }) }, getData: function () { const { list, index } = this.data const currentSource = list[index] this.setData({ currentSource: currentSource }) this._initAudioManager(currentSource); }, // 设置资源 _initAudioManager({ src = '', title = '', albumName = '', singer = '', cover = '', protocol = 'http', } = {}) { backgroundAudioManager.title = ` ${title ? title : albumName}`; backgroundAudioManager.epname = albumName; backgroundAudioManager.singer = singer; backgroundAudioManager.coverImgUrl = cover; backgroundAudioManager.src = src; backgroundAudioManager.protocol = protocol; }, //点击播放 playmp3: function () { var that = this; console.log(backgroundAudioManager, 'backgroundAudioManager') if (this.data.isPlay) { backgroundAudioManager.play(); } else { backgroundAudioManager.pause(); } that.setData({ isPlay: !this.data.isPlay }) }, nextplay: function () { wx.showToast({ title: '即将播放下一首', icon: "none", duration: 1000, }) let { list, index } = this.data const currentSource = list[index + 1] this.setData({ index: index + 1, currentSource: currentSource }) this._initAudioManager(currentSource); }, }) 现在遇到安卓客户端在熄屏状态下无法自动进行下一首的播放,开发工具查看,会报错 setBackgroundAudioState:fail: jsapi has no permission, event=setBackgroundAudioState, runningState=background, permissionMsg=permission ok, detail=jsapi permission required playing audio but current not playing audio in background state 其他家像懒人听书/蜻蜓在熄屏状态下表现也是一样的,无法播放下一首,上周四之前还是好的
2022-11-21 - BackgroundAudioManager 在播放结束未回调 onEnded
点击播放后,立马关闭屏幕,当前语音播放完后,没有触发 onEnded 回调。 手机型号 Mi 10 Ultra
2022-12-20 - BackgroundAudioManager后台播放onEnded回调不走的Bug
安卓系统手机上运行代码片段,在小程序页面时直接手机锁屏,音频在后台播放完成后,不走onEnded回调。测试手机为Mi 11 pro 系统为 MIUI 13.0.13 亲测qq音乐小程序也存在这个Bug引起的单曲循环在播放页面直接手机锁屏,不能循环播放的问题。
2022-12-21