收藏
回答

InnerAudioContext 10003 errCode:54, err

问题模块 框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
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"}

最后一次编辑于  2018-12-13  (未经腾讯允许,不得转载)
回答关注问题邀请回答
收藏

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
      回复