Error with .play() on Safari

Works perfectly on Chrome but never on Safari. How can we make it work on Safari? Function or button clicking will refuse to play the sound on Safari.

link: https://www.app.hpappen.se/preview

Hi there,

The browser blocks the playing of the video, you need to grant the site the necessary permissions in the browser in order for the browser to allow it.

How can I do that?

@johnnetr2 this is done on the browser itself, not via any code, I have no idea how, just Google it.

As @ahmadnasriya has suggested, your browser might be blocking the playing of the audio track. You might have other issues with your site or site code that we can’t see.

I use Safari all the time and I have no problem. Try the Audio Playlist example and see if it works for you. I just tried it myself and it works fine (on Safari).