By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,335 Members | 2,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,335 IT Pros & Developers. It's quick & easy.

How does one play a .wav file and then another and then another...?

P: n/a
Seems like it should be so simple, but how does one play a .wav file
and then another upon its completion (and a third after that and...),
WITHOUT using HTML+TIME?

Any code examples - IE and/or browser independent - would be greatly
appreciated!

Jan 16 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
te**********@gmail.com said the following on 1/16/2006 4:17 PM:
Seems like it should be so simple, but how does one play a .wav file
and then another upon its completion (and a third after that and...),
WITHOUT using HTML+TIME?

Any code examples - IE and/or browser independent - would be greatly
appreciated!


What this has to do with any of the groups you posted it to is beyond me.

<embed src="playlist.m3u".."

playlist.m3u:

http://www.example.com/soundFile1.wav
http://www.example.com/soundFile2.wav
http://www.example.com/soundFile3.wav

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 16 '06 #2

P: n/a
Thanks for the quick response.

I now realize my question wasn't complete enough - I'd also like to do
some processing after one .wav file finishes and before the next .wav
file starts - e.g., change what's displayed via inner.html,
hiding/showing DIV's, etc.

Any thoughts?

Thanks again!

Randy Webb wrote:
te**********@gmail.com said the following on 1/16/2006 4:17 PM:
Seems like it should be so simple, but how does one play a .wav file
and then another upon its completion (and a third after that and...),
WITHOUT using HTML+TIME?

Any code examples - IE and/or browser independent - would be greatly
appreciated!


What this has to do with any of the groups you posted it to is beyond me.

<embed src="playlist.m3u".."

playlist.m3u:

http://www.example.com/soundFile1.wav
http://www.example.com/soundFile2.wav
http://www.example.com/soundFile3.wav

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Jan 16 '06 #3

P: n/a
te**********@gmail.com said the following on 1/16/2006 5:48 PM:
Thanks for the quick response.
Thanks for not top-posting in the future.
I now realize my question wasn't complete enough - I'd also like to do
some processing after one .wav file finishes and before the next .wav
file starts - e.g., change what's displayed via inner.html,
hiding/showing DIV's, etc.
Good luck. As you have said "WITHOUT using HTML+TIME" then you have set
an impossible goal for Javascript.
Any thoughts?


Lots of thoughts. I think all day long.

Thought for today: Don't piss in the wind.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 16 '06 #4

P: n/a

te**********@gmail.com wrote:
Thanks for the quick response.

I now realize my question wasn't complete enough - I'd also like to do
some processing after one .wav file finishes and before the next .wav.


As Randy Webb indicated, this is a tall order for html with or without
script. However your best hope might be a special language for media
presentations called SMIL, an XML language. The big downside is that
common browsers do not yet support W3C SMIL 2. However recent Real
players will support nearly all of SMIL 2, which is built into the
player. A few other players suppport a much smaller subset of SMIL. For
a network or some other situation where you can expect your viewers to
have a recent Real player, this can be a viable option. You can find
more than you ever wanted to know about Real support of SMIL 2 at the
Real developer site. SMIL allows you to mix combinations of images,
movies, sound, text, links, and many other things and have them take
effect and turn off at precise times you select. So that this is not
completely off topic, you can also do some scripting in SMIL. You can
run various multiple objects in sequence and in parallel, or both.
Elaborate transitions, color changes, etc are just part of the SMIL
language and can be timed also. Since SMIL is built into the Real
player, it will work on old browsers such as the Netscape 4.8 that will
support a recent Real player, even though the browser itself can not
support modern XML languages such as SMIL.

Jan 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.