Playing Sound In Internet Explorer Mobile 6
we have a web application which is targeted to work on Internet Mobile Explorer 6. We need to play a sound when the user inputs an incorrect ... 'input'. Any idea what is supported
Solution 1:
I know this question is somewhat old, but I think it still deserves an answer. This is how I got it working. If you are only targeting IE6 Mobile, you could so something like the following in your head tag:
<bgsound id="bgSoundId" loop="0" volume="100" />
And then have a JavaScript function like so:
functionplaySound() {
document.getElementById("bgSoundId").src = "path/to/file.wav";
}
So, then you just call that function from your validation logic.
Solution 2:
Try <bgsound>
in <embed>
in <audio>
(to support as much browser, as you could)
<audiosrc="sound.url"type="mime/type"><embedsrc="sound.url"type="mime/type"><bgsoundsrc="sound.url"></bgsound></embed></audio>
But embed
& bgsound
has no generic way to start playing from javascript, as far as i can tell.
Post a Comment for "Playing Sound In Internet Explorer Mobile 6"