Hi,
Is there a cross-browser way to play short (< 25K) sound files without
spawning new windows or embedding any visual controls on the page? I
would like to click a button and hear my short sound.
Thanks for your help, - Dave
ps - Searching Google turned up stuff for Netsacpe and IE 3, but I was
hoping more for IE 7 and Firefox. 6 1978
On Feb 2, 8:35 am, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
Hi,
Is there a cross-browser way to play short (< 25K) sound files without
spawning new windows or embedding any visual controls on the page? I
would like to click a button and hear my short sound.
Thanks for your help, - Dave
ps - Searching Google turned up stuff for Netsacpe and IE 3, but I was
hoping more for IE 7 and Firefox.
Hey Dave,
The easiest way is to attach an 'embed' element and then change the
src attribute. This willl load the file at that time and play it when
it is loaded.
I also wrote a small sound class for a particular need I had. I posted
it here http://adambragg.blogspot.com/
getburl
On Feb 2, 11:18 am, "getburl" <adampbr...@gma il.comwrote:
On Feb 2, 8:35 am, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
Hi,
Is there a cross-browser way to play short (< 25K) sound files without
spawning new windows or embedding any visual controls on the page? I
would like to click a button and hear my short sound.
Thanks for your help, - Dave
ps - Searching Google turned up stuff for Netsacpe and IE 3, but I was
hoping more for IE 7 and Firefox.
Hey Dave,
The easiest way is to attach an 'embed' element and then change the
src attribute. This willl load the file at that time and play it when
it is loaded.
I also wrote a small sound class for a particular need I had. I posted
it herehttp://adambragg.blogs pot.com/
getburl
Thanks for posting this. This is a very cleanly written class. I do
have one question. is calling the "draw" function the equivalent of
calling play? So, if someone clicked on a button labeled "Play",
would the right JS be
var s = new Sound();
s.initialize('/path/to/my/sound', null, 'arbitraryId');
s.draw();
?
Thanks again, - Dave
On Feb 2, 1:39 pm, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
On Feb 2, 11:18 am, "getburl" <adampbr...@gma il.comwrote:
On Feb 2, 8:35 am, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
Hi,
Is there a cross-browser way to play short (< 25K) sound files without
spawning new windows or embedding any visual controls on the page? I
would like to click a button and hear my short sound.
Thanks for your help, - Dave
ps - Searching Google turned up stuff for Netsacpe and IE 3, but I was
hoping more for IE 7 and Firefox.
Hey Dave,
The easiest way is to attach an 'embed' element and then change the
src attribute. This willl load the file at that time and play it when
it is loaded.
I also wrote a small sound class for a particular need I had. I posted
it herehttp://adambragg.blogs pot.com/
getburl
Thanks for posting this. This is a very cleanly written class. I do
have one question. is calling the "draw" function the equivalent of
calling play? So, if someone clicked on a button labeled "Play",
would the right JS be
var s = new Sound();
s.initialize('/path/to/my/sound', null, 'arbitraryId');
s.draw();
?
Thanks again, - Dave- Hide quoted text -
- Show quoted text -
Sort of. I called it draw because that is more literal. Render would
be even more literal because the DOM element is being inserted into
the DOM of the page. So, the element is being drawn or rendered on the
page. Then there is load time until the sound plays. So, you could
rename it to play if that is more intuitive. Very good point. I may
have to change that.
On Feb 2, 1:39 pm, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
On Feb 2, 11:18 am, "getburl" <adampbr...@gma il.comwrote:
On Feb 2, 8:35 am, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
Hi,
Is there a cross-browser way to play short (< 25K) sound files without
spawning new windows or embedding any visual controls on the page? I
would like to click a button and hear my short sound.
Thanks for your help, - Dave
ps - Searching Google turned up stuff for Netsacpe and IE 3, but I was
hoping more for IE 7 and Firefox.
Hey Dave,
The easiest way is to attach an 'embed' element and then change the
src attribute. This willl load the file at that time and play it when
it is loaded.
I also wrote a small sound class for a particular need I had. I posted
it herehttp://adambragg.blogs pot.com/
getburl
Thanks for posting this. This is a very cleanly written class. I do
have one question. is calling the "draw" function the equivalent of
calling play? So, if someone clicked on a button labeled "Play",
would the right JS be
var s = new Sound();
s.initialize('/path/to/my/sound', null, 'arbitraryId');
s.draw();
?
Thanks again, - Dave- Hide quoted text -
- Show quoted text -
I did not read your code quite as well as I should have. The correct
instantiation would be:
var s = new Sound('/path/to/my/sound', null, 'arbitraryId'); //
initialization is implicit when the object is instantiated
s.draw();
On Feb 2, 5:24 pm, "getburl" <adampbr...@gma il.comwrote:
On Feb 2, 1:39 pm, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
On Feb 2, 11:18 am, "getburl" <adampbr...@gma il.comwrote:
On Feb 2, 8:35 am, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
Hi,
Is there a cross-browser way to play short (< 25K) sound files without
spawning new windows or embedding any visual controls on the page? I
would like to click a button and hear my short sound.
Thanks for your help, - Dave
ps - Searching Google turned up stuff for Netsacpe and IE 3, but I was
hoping more for IE 7 and Firefox.
Hey Dave,
The easiest way is to attach an 'embed' element and then change the
src attribute. This willl load the file at that time and play it when
it is loaded.
I also wrote a small sound class for a particular need I had. I posted
it herehttp://adambragg.blogs pot.com/
getburl
Thanks for posting this. This is a very cleanly written class. I do
have one question. is calling the "draw" function the equivalent of
calling play? So, if someone clicked on a button labeled "Play",
would the right JS be
var s = new Sound();
s.initialize('/path/to/my/sound', null, 'arbitraryId');
s.draw();
?
Thanks again, - Dave- Hide quoted text -
- Show quoted text -
I did not read your code quite as well as I should have. The correct
instantiation would be:
var s = new Sound('/path/to/my/sound', null, 'arbitraryId'); //
initialization is implicit when the object is instantiated
s.draw();
Thanks. Just one more thing. When I load this script in the latest
version of Firefox on the PC, I'm getting a "Class is not defined"
error, supposedly referring to the line
var Sound = Class.create();
Was there something else I was supposed to include in addition to the
lines posted on your blog?
- Dave
On Feb 2, 3:48 pm, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
On Feb 2, 5:24 pm, "getburl" <adampbr...@gma il.comwrote:
On Feb 2, 1:39 pm, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
On Feb 2, 11:18 am, "getburl" <adampbr...@gma il.comwrote:
On Feb 2, 8:35 am, "laredotorn...@ zipmail.com"
<laredotorn...@ zipmail.comwrot e:
Hi,
Is there a cross-browser way to play short (< 25K) sound files without
spawning new windows or embedding any visual controls on the page? I
would like to click a button and hear my short sound.
Thanks for your help, - Dave
ps - Searching Google turned up stuff for Netsacpe and IE 3, but I was
hoping more for IE 7 and Firefox.
Hey Dave,
The easiest way is to attach an 'embed' element and then change the
src attribute. This willl load the file at that time and play it when
it is loaded.
I also wrote a small sound class for a particular need I had. I posted
it herehttp://adambragg.blogs pot.com/
getburl
Thanks for posting this. This is a very cleanly written class. I do
have one question. is calling the "draw" function the equivalent of
calling play? So, if someone clicked on a button labeled "Play",
would the right JS be
var s = new Sound();
s.initialize('/path/to/my/sound', null, 'arbitraryId');
s.draw();
?
Thanks again, - Dave- Hide quoted text -
- Show quoted text -
I did not read your code quite as well as I should have. The correct
instantiation would be:
var s = new Sound('/path/to/my/sound', null, 'arbitraryId'); //
initialization is implicit when the object is instantiated
s.draw();
Thanks. Just one more thing. When I load this script in the latest
version of Firefox on the PC, I'm getting a "Class is not defined"
error, supposedly referring to the line
var Sound = Class.create();
Was there something else I was supposed to include in addition to the
lines posted on your blog?
- Dave- Hide quoted text -
- Show quoted text -
Hey Dave,
Yes, the class is based on the Prototype Framework found at http://
prototypejs.org/
The Sound class I wrote could be ported to a standalone class. I wrote
it based on Prototype out of my own specific need.
getburl This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brian Basquille |
last post by:
Hello all,
What is the syntax for simply playing a WAV file in your program?
Am learning VB and have two VB books but don't wanna root through them to
find the code.
Any help would be much appreciated!
Thanks in advance,
|
by: Peter Schmitz |
last post by:
Hi,
I'm just trying to play a *.wav file, making use of the unmanaged function
"sndPlaySoundA" in winmm.dll, but I still got one question: How can I avoid,
that the sound file itself has to be seperate file in a specific directory,
but instead 'integrate' it in my application?
Thanks
peter
|
by: Greg Smith |
last post by:
Hi, is there a simple way to play a short audio file? Some of my users
would like to hear "There is a new order for your approval" when ever the
situation calls for it. Is this do-able?
Any help is greatly appreciated.
|
by: Ron Clarke |
last post by:
I have links to some small (16MB) AVI files on a page. When I click the
link, the video plays OK in Media Player, but the sound is lost. Running
these same videos directly, instead of clicking the link, works fine. Yes,
I've checked the volume controls, settings, etc. Is there something special
that needs to be done to allow users to view AVI files, with sound, from an
ASP.NET page?
--
Ron Clarke
ron.clarke@hp.com
|
by: Lee Moody |
last post by:
I just want quick and easy way to play a .wav file out the
standard sound device. It could even be as simple as
activating a sound assigned to an existing windows sound
event.
Any suggestions?
Thanks in advance.
-Lee
| |
by: Terry Olsen |
last post by:
Using the following routine to play embedded wav files:
Private Sub PlaySound(ByVal Sound As Int32)
Select Case Sound
Case 1 : My.Computer.Audio.Play(My.Resources.Sounds.GoOnline,
AudioPlayMode.Background)
Case 2 : My.Computer.Audio.Play(My.Resources.Sounds.DoorOpen,
AudioPlayMode.Background)
Case 3 : My.Computer.Audio.Play(My.Resources.Sounds.DoorSlam,
AudioPlayMode.Background)
|
by: pkoziejko |
last post by:
Hi!
I have implemented psychoacustic Johnson model for wav files, and now I
need to play data after modification.
Now I have only playing *.wav using
and
PlaySound( "wav_file.wav", IntPtr.Zero,0x00020000 | 0x0001)
function.
|
by: gazza67 |
last post by:
Hi,
Does anyone know how to check for when a sound has finished playing?
I am currently using the SoundPlayer, there doesnt seem to be any
event for this - am I missing something?
Gary
|
by: Jack |
last post by:
Hi,
I'm writing a simple wav player (like winamp) and using the
SoundPlayer class in c# 2005.
Using winform buttons, I can begin playing the sound and stop half-way
through the sound using:
myPlayer.Play() and myPlayer.Stop() methods which works great, but i
want to know when the sound actually stops playing (so I can change my
button's picture). If I raise a custom event after the myPlayer.Play()
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |