请问wx.playVoice可以直接播放网络音频吗,谢谢
请问wx.playVoice可以直接播放网络音频吗,谢谢
代码如下,好像不行:
const audioSource = 'http://...' + t.currentTarget.dataset.src;
wx.playVoice({
filePath: audioSource,
success(rep) {
console.log(" wx.playVoice_success_rep:" + JSON.stringify(rep));
},
fail(rep) {
console.log(" wx.playVoice_fail_rep:" + JSON.stringify(rep));
}
});