hvianna/audioMotion-analyzer

Audio gets stuck on mobile IOS safari

prsh-singh834006 opened this issue · 1 comments

When mobile Safari browser goes on background then audio stops and when it comes to foreground and user hits play audio gets stuck and waveform stops generating

I am also having this issue. The way I worked around this was to create a second audio element with JS and then basically have that set to all the same settings/track etc as the actual main audio playing. Then on the options for the analyzer I set connectSpeakers:false

Doing this the audio is able to play as you would expect on the background.