Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How does one play a .wav file and then another and then another...?

Reply
Thread Tools

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

 
 
ted.j.conway@gmail.com
Guest
Posts: n/a
 
      01-16-2006
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!

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      01-16-2006
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/
 
Reply With Quote
 
 
 
 
ted.j.conway@gmail.com
Guest
Posts: n/a
 
      01-16-2006
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:
> 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/


 
Reply With Quote
 
Randy Webb
Guest
Posts: n/a
 
      01-16-2006
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 **** in the wind.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
 
Reply With Quote
 
cwdjrxyz
Guest
Posts: n/a
 
      01-17-2006

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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
If / Then / Else Help Needed - More then one condition possible? tbird2340@gmail.com Javascript 15 09-21-2006 01:27 PM
Help. SessionID is x then y then x then y BodiKlamph@gmail.com ASP General 0 09-03-2005 03:02 PM
Using One XSLT and multiple XML Problem (One is XML and another one is XBRL) loveNUNO XML 2 11-20-2003 06:47 AM
Passing value from one script on one page to another script on another page. Robert Cohen ASP General 3 07-15-2003 01:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57