收藏
回答

audio在安卓机上有声音,在ios上没有声音?

问题模块
API和组件


onLoad: function () {
    var that = this;
    that.audioCtx = wx.createAudioContext('myAudio');
    wx.downloadFile({
      url: that.data.mysite + '/data/step_stand.mp3',
      success: function (res) {
        that.audioCtx.setSrc(res.tempFilePath);
        that.audioCtx.play();
        setTimeout(function () {
          wx.downloadFile({
            url: that.data.mysite + '/data/step_walk.mp3',
            success: function (res) {
              that.audioCtx.setSrc(res.tempFilePath);
              that.audioCtx.play();
              setTimeout(function(){
                that.startBtn();
                setTimeout(that.autofinish, 10000);
              },4000)
            }
          })
        }, 6000);
         
      }
    })
    that.onTimeChange();
     
    
  },


最后一次编辑于  2017-09-07
回答关注问题邀请回答
收藏