uni.createInnerAudioContext() 重复播放音频会变慢 怎么解决?
data() {
return {
AudioContext: uni.createInnerAudioContext(),
}
methods: {
getSound() {
// this.AudioContext = uni.createInnerAudioContext();
this.AudioContext.autoplay = false;
this.AudioContext.loop = true;
// this.AudioContext.src = `${this.host}/static/sound/频率_1分钟重复200次.mp3`;
this.AudioContext.onPlay(() => {
console.log('开始播放');
});
this.AudioContext.onError((res) => {
console.log(res.errMsg);
console.log(res.errCode);
});
},
}
1 个回复
2***@qq.com
请问楼主解决了吗