How can play sound using JavaScript only, without using the <audio> tag?
I’m using:
var audio = {};
audio["walk"] = new Audio();
audio["walk"].src = "Scr/dave.wma"
audio["walk"].load()
setTimeout('audio["walk"].play()',1000);
But it doesn’t play?
As Delan says, no browser supports WMA.
However, your code still has a problem.
You need to wait until the
audiohas loaded.