小程序innerAudioContext的使用
实现播放音频很简单,直接上代码啦:
this.innerAudioContext = wx.createInnerAudioContext();
var voicePath = this.data.voiceTempFilePath;
this.innerAudioContext.src = voicePath;
this.innerAudioContext.play();
this.innerAudioContext.onEnded((res) => {
console.log('播
转载
2022-04-12 13:45:00 ·
1852 阅读 ·
0 评论