soma-fm-player icon indicating copy to clipboard operation
soma-fm-player copied to clipboard

The AudioContext was not allowed to start. Chrome.

Open madbeyk opened this issue 4 years ago • 2 comments

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.

madbeyk avatar May 14 '20 07:05 madbeyk

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.

madbeyk avatar May 14 '20 09:05 madbeyk

Hey @madbeyk, thanks for pointing that out. I'll look into it and try to implement the fix you came up with.

rainner avatar May 21 '20 22:05 rainner