sound help

G

Guest

I am trying to add music to my website on a certain page. I went into the
page properties and tried to add background sound. I am trying to add a
song. I had it in mp3 form then converted it to wav, but that was too big
then i converted it to .ram. I updated the site and now the music does not
load and does not play in the background...any ideas or help. heres the site

http://www.fightdagoodfight.com/aboutthesite.htm
 
T

Trevor L.

David said:
I am trying to add music to my website on a certain page. I went
into the page properties and tried to add background sound. I am
trying to add a song. I had it in mp3 form then converted it to wav,
but that was too big then i converted it to .ram. I updated the site
and now the music does not load and does not play in the
background...any ideas or help. heres the site

http://www.fightdagoodfight.com/aboutthesite.htm

I get some sound after a long wait (on ADSL) while it downloads, but it
isn't very clear

But what is a .ram file ?

I use a .wav file with this code
JS:
function playSound()
{ document.getElementById("sound").innerHTML= '<embed src="minuet.wav"
loop=false autostart=true hidden>' }
function stopSound()
{ document.getElementById("sound").innerHTML= ''}
HTML:
<input type="button" value="Play
Music" onClick="playSound()">
<input type="button" value="Stop
Music" onClick="stopSound()">

This way, the visitor has a choice

BTW, I am told <bgsound> is IE only. wheraeas embed should work with most
browsers
 
G

Guest

ram is real audio real player file i think....I had it in wav but the sound i
want is a song, and i want it to play right away as the page loads but its
31.7 MB, so it just dled for minutes, and people probably wont sit there that
long...So i dont know what i should do?
 
T

Trevor L.

David,
I see a question in your last sentence.

But to be truthful, I dont know.

I read here about streaming video and audio, but I can't get it to work for
me. All that seems to happen to me is that the file downloads, taking its
time if it is large, and then plays.

I guess if it downloads while the page is loading, the visitor can play it
after the download has finsihed with a button such as I have: <input
type="button" value="Play Music" onClick="playSound()">

But how does one arrange for the background download and how does the
visitor know when it is ready?

I have seen code to preload images like this
preLoadImg = new Image()
preLoadImg.src = 'picture.jpg'

But how would one do it for a sound file?
One thought is to add a hidden embed, which should initiate the download,
leaving the file available in the local temp directory
i.e. <embed src="minuet.wav" loop=false autostart=false hidden>

Experts - would this work?
 
A

Andrew Murray

Trevor L. said:
I get some sound after a long wait (on ADSL) while it downloads, but it
isn't very clear

But what is a .ram file ?

a RAM file is Real Audio Media. (well, that's my guess of its meaning -
seems to fit logically).

The rm file is the "raw" real media file. to make Real Media stream,
put the full url to the file e.g. "http://www.yoursite.com/music/song.rm"
inside a text file and name it "song.ram".

Then one your web page, link to http://www.yoursite.com/song.ram - which
will then stream the media (where the server is set up to allow streaming
media).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top