html playing audio not working

I have a pure html/javascript application running on my (Brightsign XT114).
Everything works fine, I can drag objects etc.
The only thing not working is playing a sound (I tried .wav and .mp3) when a user touches the screen.

I tried these solutions:



Both are not giving the result I want. Sometimes the audio plays, sometimes not or it plays after a few seconds.

The problem also occurs when I called the sound function from an external IO input. So I am not sure it is mainly a touch problem (multiple triggers fired).

Anyone has a solution?



Please sign in to leave a comment.