Can't get the audio to play

Hi,

Whenever the timer reach 1, it stopped but can’t play the audio file.

Not sure if the syntax for playing an audio file is correct.
I changed the www to dl for playing an wav file in my dropbox.

Here is my code:

Proper syntax:

const audio = new Audio('https://dl.dropbox.com/s/rkfxpbf0sua7oya/181148__keweldog__timer-with-ding.wav?dl=0');
audio.play();

Secondly, why are you playing an audio file that ticks for 27 or so seconds before ringing? The timer runs out, then we hear a ticking for half a minute, and then we hear a ring? Just something to think about.

1 Like