473,382 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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

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
4 3072
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
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: cj | last post by:
Public Class MyStringLogger Private Shared m_loglock As New Object Public Shared Sub Write(ByVal str As String) SyncLock (m_loglock) Dim sw As New System.io.StreamWriter("c:\validate.log",...
3
by: Jared | last post by:
I'm using the first code sample below to play WAV files stored as embedded resources. For some reason I *occasionally* get scratching and crackling. I'm using a couple WAVs that ship with...
9
by: Morris Neuman | last post by:
Im working with VS 2005 and trying to use a Hyperlink field in a datagrid to play a wave file that is not located in the website folders but is in a plain folder on the same machine, windows 2003...
89
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
4
by: garyusenet | last post by:
I am at a loss with this. I tried to go back to basics, and start learning all i didn't understand, starting at the top of the code file generated by VS. But I can't seem to get any sort of start...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
3
by: John Piper | last post by:
Again, I am a beginer, and need help. Can some walk me through the steps to do the following: click a button, which will play a video file in WMP in fullscreen mode (launch player, not in a form)...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.