Onshown trigger problems

Hi, I have this page https://street-mng.herokuapp.com/vegan , where modal is shown, once serverconnect meets a condition. Once the modal is shown, it plays html5 audio. You can see the modal and audio in action, if you click the blue button too.

The problem is that when the page is loaded for the first time and modal is shown through serverconnect, the audio is not playing. I have to click the button to show modal first and audio is already playing. After this step, audio is also working once triggered by serverconnect. Do you have any idea, where is the problem that it’s not working from the beginning through serverconnect trigger? Button and serverconnect are triggering the same modal with same play function. I have no idea…thank you for your help.

Community Page
Last updated: