473,804 Members | 3,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3102
te**********@gm ail.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.m 3u".."

playlist.m3u:

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

--
Randy
comp.lang.javas cript 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**********@gm ail.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.m 3u".."

playlist.m3u:

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

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


Jan 16 '06 #3
te**********@gm ail.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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 16 '06 #4

te**********@gm ail.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
1479
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", True) sw.WriteLine(str) sw.Close() End SyncLock
3
10642
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 Windows, and they play fine outside of my app. This code works, but has the random "scratching" problem: private static void PlayResource(string audioRes) { // Get the resource into a stream
9
5614
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 server, WMP 10.0 . If I type the full path in an IE address field it plays the file in WMP When I test my Web page ( running the debugger in VS.) The datagrid has a column called "MsgFile" with the full path to the wave file e.g....
89
6090
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 used." Could anybody tell me why gets() function is dangerous?? Thank you very much. Cuthbert
4
19474
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 on this problem, anything I read on the NET goes too far above my head to be of any use. For instance typical explanations say things like... 'The STAThreadAttribute marks a thread to use the Single-Threaded COM Apartment if COM is needed'
13
4904
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, suggestions or improvements? if( wmv file) document.write("<OBJECT id=Player classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354" width="479">
3
4647
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) then when the video is done playing, I want the player to close, then the form that had the button to also close. I really do not have a clue, so I need very basic instruction. Thanks to those of you that share what you know so the rest of us...
113
5325
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 the Python world, you're fine. But once you do, things go downhill. MySQLdb has version and platform compatibility problems. So does M2Crypto. The built-in SSL support is weak. Even basic sockets don't quite work right; the socket module...
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9591
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9166
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.