收藏
回答

InnerAudioContext 10003 errCode:54, err

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug InnerAudioContext 客户端 6.7.3 2.4.2

系统:{"screenWidth":360,"statusBarHeight":18,"pixelRatio":2,"system":"Android 7.1.1","windowWidth":360,"deviceOrientation":"portrait","brand":"OPPO","version":"6.7.3","screenHeight":672,"fontSizeSetting":16,"language":"zh_CN","windowHeight":672,"model":"OPPO A83","platform":"android","SDKVersion":"2.4.2"}
           
错误栈:{"errCode":10003,"errMsg":"errCode:54, err:file can not read"}



系统:{"screenWidth":360,"statusBarHeight":24,"pixelRatio":3,"system":"Android 7.0","windowWidth":360,"deviceOrientation":"portrait","brand":"HONOR","version":"6.7.3","screenHeight":604,"fontSizeSetting":16,"language":"zh_CN","windowHeight":604,"model":"PRA-AL00","platform":"android","SDKVersion":"2.4.2"}
           
错误栈:{"errCode":10003,"errMsg":"errCode:54, err:file can not read"}

回答关注问题邀请回答
收藏

1 个回答

  • 是小白啊
    是小白啊
    2018-12-13

    提供下代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2018-12-13
    有用
    回复 4
    • 淳祖军
      淳祖军
      2018-12-13
      if (!this.$$audioContext) {
      this.$$audioContext = wx.createInnerAudioContext()
      this.$$audioContext.onError(getApp().onError)
      }
      this.$$audioContext.autoplay = true

      this.$$audioContext.src = src

      2018-12-13
      回复
    • 是小白啊
      是小白啊
      2018-12-13回复淳祖军

      你之前的那个问题?

      2018-12-13
      回复
    • 淳祖军
      淳祖军
      2018-12-13回复是小白啊

      这是不同的错误码呀 你们这个api 的问题太多了 特别是Android机型上


      现在又出现新的问题了,无语了。


      系统:{"batteryLevel":100,"version":"6.7.4","system":"iOS 11.4.1","windowHeight":736,"pixelRatio":3,"screenHeight":736,"language":"zh_CN","statusBarHeight":20,"deviceOrientation":"portrait","windowWidth":414,"model":"iPhone 6s Plus<iPhone8,2>","screenWidth":414,"fontSizeSetting":17,"brand":"iPhone","platform":"ios","SDKVersion":"2.4.2"}
                 
      错误栈:{"errMsg":"INNERERRCODE:-11800, ERRMSG:这项操作无法完成","errCode":10001}


      2018-12-13
      回复
    • 是小白啊
      是小白啊
      2018-12-14回复淳祖军


      https://developers.weixin.qq.com/miniprogram/dev/api/InnerAudioContext.html,使用官网的案例。测试了6s的机型,未复现该问题

      2018-12-14
      回复
登录 后发表内容