第一次播放完整了,第二次及之后会到某个地方直接停止播放
this._audioContext = uni.createInnerAudioContext();
this._audioContext.src = this.questionList[this.step].tts_data[this.questionList[this.step].avatar_gender][0].url;
this._audioContext.autoplay = false;
this._audioContext.loop = false;
this._audioContext.onError((res) => {
console.log(res.errMsg);
});
if(!this.muted){
this._audioContext.play();
}else{
this._audioContext.stop();
}
this._audioContext.onEnded(()=>{
this.muted = true;
});