soma-fm-player
soma-fm-player copied to clipboard
The AudioContext was not allowed to start. Chrome.
Any quick workaround for this?
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu eval @ audio.js?dd07:6
It seems that in new versions of Chrome there is a new policy to block automatic start of audio. It can be started just after some user action on page.
I've made dirty and quick workaround. Player is not starting (playing stream) automatically after load in Chrome. It needs user intent (select channel or press play button). https://github.com/madbeyk/soma-fm-player/commit/32d7f312ffdfb0fac46c34855e6a9bc2587440eb Maybe it needs further testing or improvements.
Hey @madbeyk, thanks for pointing that out. I'll look into it and try to implement the fix you came up with.