微信android7.0.6版不能播放aac文件
发布于 5 年前 作者 min46 8365 次浏览 来自 官方Issues

微信小程序用backgrouaudiomanager播放aac网络流,开发工具可以正常播放,ios版微信可以正常播放,android版(7.0.6)提示文件错误(10004)。

手机是小米8,稳定版10.3.5,android9

3 回复

问题已复现,我们会在后续版本中进行修复。

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

const audio = wx.getBackgroundAudioManager()

audio.title = ‘测试饮品’

audio.protocol = ‘hls’

audio.epname = ‘专辑名’

audio.singer = ‘歌手名’

audio.coverImgUrl = https://xxx/xxx.jpg

audio.src = http://xxx/xxx.aac

console.log(‘start’)

audio.onError((res) => {

console.log(res)

})

回到顶部