[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio support in JavaScript



Jim Loya wrote:
> 
> With or without using the "<applet code="AudioItem"...>" style of playing
> audio, is there a JavaScript equivalent to playing audio OnLoad?
> 
> And another stupid question from a Java Newbie... what types of files are
> supported by AudioItem? Just .au? Is there a method of using WAVe files that
> won't automatically launch the Windows Media Player? (Stupid, because I
> think I already know the answer).
> 
> Jim

I'm not familiar with AudioItem but one easy way to get sound to 
play is to simply load the file, usually into a seperate frame so it 
can be controled independent of other items.

For example:
window.AUDIOFRAME.location.href="http://xxx.xxx.xxx/soundfile.htm";

with soundfile.htm containing an <EMBED..> tag to load a voxware or 
realaudio file.
--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/