Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #13579
| Date | 2012-04-25 18:36 +1000 |
|---|---|
| From | Andrew Poulos <ap_prog@hotmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Audio autoplay in IE 9 |
| Message-ID | <S8CdneGyBeIKKgrSnZ2dnUVZ_radnZ2d@westnet.com.au> (permalink) |
I'm dynamically creating an AUDIO element with
var audio = document.createElement("audio");
audio.id = "audio01";
audio.src = "sample.mp3";
audio.autoplay = true;
audio.loop = false;
document.body.appendChild(audio);
audio = null;
but the audio never starts until I call
document.getElementById("audio01").play();
Is there some "trick" to getting the audio to autoplay/start in IE 9?
Andrew Poulos
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Audio autoplay in IE 9 Andrew Poulos <ap_prog@hotmail.com> - 2012-04-25 18:36 +1000
csiph-web