html52.com
我爱小程序-开发者交流社区

ios微信7.0.5大bug,急。文件下载和音频播放

问题模块 框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
API和组件 小程序 Bug wx.downloadFile 和 wx.createInnerAudioContext 客户端 7.0.5 2.7.5

ios系统,昨天更新的微信ios 7.0.5   ,带search的url,使用wx.downloadFile下载后, res.tempFilePath  也带上了search,InnerAudioContext.play()播放报错。



var that = this;
let src = 'http://fdfs.xmcdn.com/group55/M0A/DF/94/wKgLdVyYhamwaAREAAjQ8RhAz0s434.m4a?a=1';
wx.downloadFile({
  url: src,
  success: function (res) {
 
     let innerAudioContext = wx.createInnerAudioContext();

     innerAudioContext.src = res.tempFilePath;

    console.log(res.tempFilePath);//wxfile://tmp_852f4db0e728c9133951323464ae379c.m4a?a=1

     innerAudioContext.play();
     innerAudioContext.onError(e=>{

        console.log(e);


  1.    // errCode:10001

  2.    //errMsg:"INNERERRCODE:-11828, ERRMSG:打不开"


     })
  }
})





在调试器和安卓系统中是好的。 微信7.0.5。

在ios的微信7.0.5中播放失败。  把res.tempFilePath中的url中search部分去掉,依然无法播放。



官方大大,求验证,求解决,非常急!感谢!



网友回复

风先生:

1.链接中没有特殊字符。  2.之前的ios中的微信版本是正常的。  3.去掉res.tempFilePath的?a=1,依然播放失败。4.目前在iphone6 plus, ipad air,iphone7中测试均会出现这样的情况。    求解决

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付