调用音频 wx.createInnerAudioContext 方法,在部分机型无法播放完整
问题: 目前我们产品需要播放音频,资源的URL:https://s.gsucdn.com/audio_sentences/12a2e21abafebf7f7898759f95c041f4.mp3 调用的是小程序:wx.createInnerAudioContext 这个方法。 目前发现一个机型,无法播放完整就结束了。 这个资源是一个英文的句子:You don't need to understand every word。 当播放最后一秒的时候,word中 d 没有发音完,就播放结束了。 其他手机我可完成的 播放到 d 这个发音再结束。 详细代码: const playAudio = () => {
const audioContext = wx.createInnerAudioContext();
audioContext.src = 'https://s.gsucdn.com/audio_sentences/12a2e21abafebf7f7898759f95c041f4.mp3';
audioContext.play();
}
设备信息: 安卓15版本, vivo X100 Ultra [图片] [图片]