We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi ... I tried unlocking the sound under the command line below but could not unlock audio on iOS, can only unlock sound on PC and Android browser.
document.body.addEventListener('touchstart', function(){ player.audioOut.unlock(function(){ alert('unlocked!'); }); });
Anyone plz tell me unlock sound on iOS?
Thank you for your help
The text was updated successfully, but these errors were encountered:
I'm having the same problem. Did you find a solution?
Sorry, something went wrong.
#162 This worked for me.
I find that I need to trigger a audio element work firstly, this is my solution:
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 }) })
t.acc is a little audio file, just 1s, use to trigger audio element to work.
No branches or pull requests
Hi ...
I tried unlocking the sound under the command line below but could not unlock audio on iOS, can only unlock sound on PC and Android browser.
Anyone plz tell me unlock sound on iOS?
Thank you for your help
The text was updated successfully, but these errors were encountered: