Closed EvgeniyDoctor closed 1 year ago
Can you try out the demo page and see if that works for you? I haven't seen this error before while testing myself. You might also try searching StackOverflow or similar for this error, it sounds like the user denied audio playback.
Demo: most stations works well, some work partially and some of them do not work at all. For example:
I tested it on iOS 15.7.1 in the last version of Brave Browser in incognito mode.
It looks like you're using JQuery (based on the $
variable). This might be preventing iOS from detecting that the click event is coming from a user interaction. iOS and other browsers won't allow the AudioContext
to start if it's not triggered directly by a user interaction.
You might try removing JQuery and just attaching the event directly to the element that is receiving the click.
Based on the results of the demo, it looks like the issue isn't with your version of iOS or your browser environment.
Use JS only: did not help.
I cannot get this player to work on iOS (15.7.1). I have tried Safari, Chrome and Brave - all the same.
If i press Play then Stop and then press Play again - there is no audio; if i try to play another station - the same result. Sometimes i see this error in onError():
Here is my code for Play/Stop button:
Example of an instance:
So, is there a way to make it work?