I'm trying to get HTML5's audio tag to work in Chrome. The following code works flawlessly in Firefox, any ideas why it isn't working in Webkit?
<html>
<head>
<script type="text/javascript">
function init(){
audio = new Audio("chat.ogg");
audio.play();
}
</script>
</head>
<body onload="init()">
</body>
I should also note that I tried this with an mp3 as well. Regardless of what format, whenever .play() is called on audio, Chrome responds with "undefined".