收藏
回答

audio 音频播放错误?

使用API: wx.createInnerAudioContext,

InnerAudioContext.onError

预期效果:在不同手机上都可以正常播放,事件监听正常

实际效果:在不同手机上同样的音频存在兼容性,报错日志显示如下。

1:

音频地址:https://yyashow-1255660808.file.myqcloud.com/book/audio/5e3d2dde78b9e.mp3

音频报错信息: errCode":10001,"errMsg":"errCode:62, err:load or init native decode so fail

报错机型: {"screenWidth":360,"locationEnabled":false,"statusBarHeight":18,"notificationAuthorized":true,"screenTop":61,"pixelRatio":2,"safeArea":{"height":640,"width":360,"bottom":640,"top":0,"left":0,"right":360},"system":"Android 5.1","benchmarkLevel":5,"cameraAuthorized":true,"bluetoothEnabled":false,"deviceOrientation":"portrait","windowWidth":360,"brand":"OPPO","fontSizeSetting":16,"version":"7.0.10","screenHeight":640,"locationAuthorized":true,"language":"zh_CN","wifiEnabled":true,"microphoneAuthorized":true,"windowHeight":579,"model":"OPPO A37m","platform":"android","SDKVersion":"2.10.3","devicePixelRatio":2}

2:

音频地址:https://yyashow-1255660808.file.myqcloud.com/book/audio/5e3a35d3190b8.mp3

音频报错信息: errCode":10001,"errMsg":"errCode:67, err:decode audio fail

报错机型: {"locationEnabled":true,"screenWidth":360,"benchmarkLevel":12,"screenHeight":742,"windowHeight":674,"bluetoothEnabled":false,"language":"zh_CN","microphoneAuthorized":true,"version":"7.0.10","cameraAuthorized":true,"system":"Android 9","fontSizeSetting":16,"locationAuthorized":false,"pixelRatio":3,"notificationAuthorized":true,"model":"HLK-AL00","statusBarHeight":24,"deviceOrientation":"portrait","wifiEnabled":true,"safeArea":{"width":360,"right":360,"top":0,"left":0,"bottom":742,"height":742},"brand":"HONOR","windowWidth":360,"screenTop":68,"platform":"android","SDKVersion":"2.10.3","devicePixelRatio":3}

3:

音频地址:https://yyashow-1255660808.file.myqcloud.com/book/audio/5e54dc32ae2af.mp3

报错信息: errCode":10004,"errMsg":"errCode:55, err:unknow format

4: 还有一些,同一个音频我这边会播放两次,但往往第二次播放有时会报错。后来我们联系了用户,用户说从4g切换wifi时候就可以,播放没问题,不懂这里什么错误。

等等还有很多诸如类似的错误

5

音频地址: https://yyashow-1255660808.file.myqcloud.com/book/audio/5e3eb5a40d34c.mp3

报错信息:errCode":0,"errMsg":""

报错机型:screenWidth":360,"locationEnabled":true,"statusBarHeight":18,"notificationAuthorized":false,"screenTop":61,"pixelRatio":2,"safeArea":{"height":640,"width":360,"bottom":640,"top":0,"left":0,"right":360},"system":"Android5.1","benchmarkLevel":5,"cameraAuthorized":true,"bluetoothEnabled":false,"deviceOrientation":"portrait","windowWidth":360,"brand":"OPPO","fontSizeSetting":16,"version":"7.0.12","screenHeight":640,"locationAuthorized":true,"language":"zh_CN","wifiEnabled":true,"microphoneAuthorized":true,"windowHeight":579,"model":"OPPO A37m","platform":"android","SDKVersion":"2.10.3","devicePixelRatio":2

期望结果:尽快修复,或者 告知正确的音频需要的具体要求:格式,采样速率,音频声道信息等

代码片段:https://developers.weixin.qq.com/s/nVfAw5mc7pgt

最后一次编辑于  2020-03-27
回答关注问题邀请回答
收藏

5 个回答

  • Live
    Live
    2021-06-03

    请问解决了不

    2021-06-03
    有用
    回复
  • Why not?
    Why not?
    2020-03-29

    真的是各种问题被你一次性全遇到了。一直不知道怎么解决。

    2020-03-29
    有用
    回复 2
    • Yu Qian
      Yu Qian
      2020-03-30
      是呀,我们正在试缓存方案。一个周了官方也不回复,日志平台不停的报各种错误。太坑了
      2020-03-30
      1
      回复
    • Why not?
      Why not?
      2021-05-20回复Yu Qian
      兄弟怎么样了?事先缓存能解决问题吗?
      2021-05-20
      回复
  • Yu Qian
    Yu Qian
    2020-03-24

    希望早日确定问题,后台日志不停的报错...

    2020-03-24
    有用
    回复
  • harvey
    harvey
    2020-03-24

    格式,采样速率,音频声道信息

    我觉得官方要给一个参考值

    2020-03-24
    有用
    回复 2
    • G.Y
      G.Y
      2020-03-24
      嗯嗯我在写一个代码片段,等会提交看官方回复吧
      2020-03-24
      回复
    • harvey
      harvey
      2020-04-28回复G.Y
      所以有参考值了吗?
      2020-04-28
      回复
  • 是小白啊
    是小白啊
    2020-03-23

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

    2020-03-23
    有用
    回复 7
    • G.Y
      G.Y
      2020-03-24
      https://developers.weixin.qq.com/s/nVfAw5mc7pgt
      2020-03-24
      回复
    • G.Y
      G.Y
      2020-03-24
      代码片段已添加,在代码片段不同音频对应的具体的型号版本号以及报错信息等已经给出
      2020-03-24
      回复
    • Yu Qian
      Yu Qian
      2020-03-25
      {"payload":{"type":"audio","src":"book/audio/5e3e2cc57cc28.mp3","text":"第二遍","btnType":"jump","startAnswerQues":true,"book_chapter_id":"20","gameId":38,"typeId":"6","book_id":"4","source":"1","errCode":10004,"errMsg":"errCode:55, err:unknow format"} 程序控制播放两次,都播放第二次了 ,回调事件告诉音频格式错误,昨天的留言给我删除了。以上json是系统日志。
      2020-03-25
      回复
    • 是小白啊
      是小白啊
      2020-03-25回复G.Y
      错误码时候系统层上报的,这边也在整理中
      2020-03-25
      回复
    • Yu Qian
      Yu Qian
      2020-03-27
      "errCode":10004,"errMsg":"Couldn't open input stream:-1094995529." 这几天日志更奇怪。
      2020-03-27
      回复
    查看更多(2)
登录 后发表内容
问题标签