- 微信小程序,在IOS平台发热严重,在安卓平台发热正常,我们需要排查哪些方面的原因么?
微信小程序,在IOS平台发热严重,在安卓平台发热正常,我们需要排查哪些方面的原因么? 代码一样,用的是taro,我们有哪些排查的方向么? 我们测试了安卓和IOS两个系统,安卓情况还算正常,IOS发热特别明显,界面没有需要大量消耗处理器和内存的功能 同一部手机打开其他小程序,不会出现此情况将小程序浮窗收起,发热情况相同需要我们提供哪些信息,或者我们应该从那些方面去排查可能原因?
2020-06-05 - 熄屏情况下背景音乐播放完成无法切换下一曲
微信8.0.30安卓版本下, 熄屏情况下背景音乐播放完成无法切换下一曲。
2022-11-23 - 离开小程序之后背景音乐播完之后无法播放新的音频
在安卓微信8.0.30版本下,离开小程序之后背景音乐播完之后无法播放新的音频。
2022-11-23 - 黑屏情况下部分安卓手机无法播放新的音频
微信安卓8.0.30版本,熄屏情况下, 背景音频onEnd方法再次赋值src不生效, 不能播放下一首。
2022-11-23 - 小程序安卓熄屏状态下无法给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 - 微信开发者工具更新完之后显示[渲染层错误] ?不知道什么原因
[渲染层错误] TypeError: Cannot read property '__wxElement' of null [图片]
2022-08-11 - 更新开发者工具后一直出现渲染层错误?'__wxElement' of null
[渲染层错误] TypeError: Cannot read property '__wxElement' of null 报错信息也没提示具体什么位置代码错误,更新开发者工具之前是没遇到的,代码发布到真机也没发现有什么异常,都正常访问 这个提示究竟是什么问题?而且有时编译重新加载一下这错误又会消失,等会又出现,奇妙 [图片]
2022-07-15 - 实验工具AB测试,getExptInfoSync无法获取到参数?
已经创建了实验(未发布),但是本地开发者工具调用getExptInfoSync返回空对象。 基础库2.16.1 开发者工具是最新版本的
2021-12-08 - 开发工具不能预览,报错:错误码:-1,system error?
message:Error: 系统错误,错误码:-1,system error [20210817 16:49:54][wx5b5b59272f5cb31f] appid: wx5b5b59272f5cb31f openid: o6zAJs4G6Mn1-qC-eoWaS1Dw1vGA ideVersion: 1.05.2108130 osType: win32-x64 time: 2021-08-17 16:50:33
2021-08-17 - 预览报错,Error: 系统错误,错误码:-1,system error, 什么原因?
最新的稳定版开发工具,这个appid(wx4207039c27949d7e)有问题,换个其他项目的appid就没问题。 下午刚开始还好的,突然就不行了,这是什么原因啊? 有人能帮忙解决吗?急死了!!! [图片]
2021-08-17