收藏
回答

wx.playVoice如何判断播放结束?

playVoice: function(t) {

const that = this;

this.setData({

playing: true,

});

wx.playVoice({

filePath: that.data.tempFilePath,

success() {

},

complete() {

console.log("play vocie completed");

that.setData({

playing: false,

});

}

});

}

在没有播放完的情况下,complete就执行了,请问如何解决?Thanks♪(・ω・)ノ

最后一次编辑于  2018-11-20
回答关注问题邀请回答
收藏

1 个回答