以下是代码片段,在开发者工具中没有问题,使用 vivo x20 vivo x9 Huawei p10 进行测试 均得到 errcode 为
10001 的提示. ios 设备播放正常
const backgroundAudioManager = wx.getBackgroundAudioManager(); backgroundAudioManager.title = 'title' ; backgroundAudioManager.epname = 'epname' ; backgroundAudioManager.singer = 'singer' ; backgroundAudioManager.coverImgUrl = 'coverImgUrl' ; backgroundAudioManager.src = 'http://7xndda.com1.z0.glb.clouddn.com/testaudio/Don%27t%20Cry%20%28Original%29-Guns%20N%27%20Roses.aac' ; backgroundAudioManager.onError((err) => { console.error(err); }); |
vivo x20 的调试贴图:
非常感谢,这里是代码片段 wechatide://minicode/Aw6ArXmp6OZC
我测试过多个 aac 文件均得到该错误提示,期待回复
目前安卓暂时不支持和ADTS格式头的aac文件,有计划会支持上。
可以先转换一下音频格式规避下这个问题。
附个类似问题的链接
https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=000e0a2828c0b814b6c636ce351800
非常感谢
你好,麻烦提供下能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
你好,代码片段的地址是 wechatide://minicode/Aw6ArXmp6OZC 麻烦帮忙核查下