Open buzeandrei opened 6 years ago
Audio not working on iPhone 7+, iOS v11.1.2
, either.
Hi all,I also meet this issue. iPhone X version is 11.4.1
Is there any solution to fix this issue? thx
It does work... sometimes. Somehow. I got it working one day.. and then changed something, and it stopped working. Seems to have something to do with the surrounding markup, or which event handlers you have floating around. I don’t know. :-(
you need run a audio element by click or touchstart event firstly.
document.addEventListener('touchstart', function () { // 手动启动audio,解除新的ios audio不能自动播放的问题 var audio = document.createElement('audio') audio.autoplay = 'autoplay' audio.volume = 0 audio.src = 't.aac' // 手动触发audiocontext,让其从suspended变为running模式 _this.player.audioOut.unlock(function() { _this.unlockstate = true }) })
Hello,
the audio doesn't seem to work on either iPhone 8 or X . Has anyone encountered this?
Thanks!