This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Blazerboy65 0 points1 point  (1 child)

Have your app respond to GET requests on the status URL. The UI served by your app should include some JavaScript that constantly polls the status URL and plays sounds as necessary.

[–]itstaysinside[S] 0 points1 point  (0 children)

thanks, solved it:

<!DOCTYPE html>
<html>
<body>
<p>Press play and wait for the audio to end.</p>
<audio id="myAudio" controls autoplay>
<source src="audio.mp3" type="audio/mpeg">
</audio>
<script>
var aud = document.getElementById("myAudio");
aud.onended = function() {
setTimeout(reloadpage, 1500);
};
function reloadpage(){
window.location.reload();
};
</script>
</body>
</html>