...

View Full Version : Successive sounds



spamfritter
12-19-2002, 10:04 PM
HELP ME PLEASE!

This is my 1st post on here and alas it's cos I need help

I want to play sounds one after another but I can only play them all together or only play one. I wrote

<EMBED src=http://www. hidden=true loop="false" autostart="true" width="1" height="1">
<EMBED src=http://www. hidden=true loop="false" autostart="false" width="1" height="1">
<EMBED src=http://www. hidden=true loop="false" autostart="false" width="1" height="1">
<EMBED src=http://www. hidden=true loop="false" autostart="false" width="1" height="1">
<EMBED src=http://www. hidden=true loop="false" autostart="false" width="1" height="1">
<EMBED src=http://www. hidden=true loop="false" autostart="false" width="1" height="1">

with the links in there but I have no way to get them to play one after the other. Worse still I really don't want to record the sounds together as their on friends websites (I'm using them with permission don't worry!). Any help would be great. (if anyone knows how to put in a 1 sec pause between them too that would be really great!)

Thanks very much.

Ben

sweenster
12-19-2002, 11:29 PM
Best bet might be to create a small i-frame using this code:


<iframe width="1" height="1" name="playsound" scrolling="no" noresize src="page1.html" frameborder="no" marginwidth="0" marginheight="0"></iframe>
<layer><ilayer name="playsound" height="1" scrolling="no" noresize src="page1.html" frameborder="no" marginwidth="0" marginheight="0"></ilayer></layer>


then create page1.html with this code:
[code]
<html>
<head>
<bgsound src="sound1.wav" loop="1">
</head>
<body onload="page2.html">
&nbsp;
</body>
</html>
[code]

now create page2.html, page3.html and so on.


PS
I've absolutley no idea if this is gonna work, cos i ain't tested it!!
I think it should with a few modifications though.

spamfritter
12-19-2002, 11:41 PM
Sorry i need to do it in 1 page. Is there no simple command I can use that queues multimedia or something of that ilk? Thanks anyway Sweenster for trying, much appreciated.

Merry Christmas

Spamfritter

bassleader
12-19-2002, 11:42 PM
You might have more joy using only one embed tag and using javascript to manipulate it. I wouldn't know how to do it exactly, maybe calling a function via a timeout that sets the source attribute.

Basically, give the javascript board a try.

BL

zoobie
12-20-2002, 06:18 AM
Well, what sweenster is saying is that your page will look like one as the iframe is only 1 x 1`px big...basically a dot. This enables the surfer to switch main pages while the sounds continues.

Why would you want seperate links if they're all to play back to back? You lost me...You won't be able to hotlink unless all your friends have paid hosts that allow it...Trust me.

Probably the easiest way would be to edit all the sounds together into one file on your site via a sound editor like Goldwave (free) and simply use one <embed> tag. :D

spamfritter
12-20-2002, 02:23 PM
Still no luck. Tried doing a i-frame and tweaked it for an hour or so and it still didn't work.

I woke up last night (we're 8 hrs ahead of America in England) and I thought I could just put in a pause before a sound then I can set a pause at the start of each sound and set autostart=true so that the effect is they appears to play one after another

for example:
if 1.wav = 5 secs
and 2.wav = 3 secs
and 3.wav = 7 secs
and i want a 1 sec pause between them

If i start all of them but put a pause of 6 (5+1) secs at the start of 2.wav and a pause of 10 (5+1+3+1) secs at the start of 3.wav they would appear to play one after another.

I also found something about timenodes but what this is I have no idea!

Any ideas at how to do any of these would be great.

Thanks.

Spamfritter

PS: Bassleader, I went to the Java forum but I don't know Java at all so that's all gobbledigook to me, sorry!

zoobie
12-21-2002, 08:02 PM
Well, good luck to ya there! :D

PS - There isn't any Java forum here.:rolleyes:

spamfritter
12-23-2002, 09:47 AM
me being silly again and being lazy about JavaScript instead of Java

zoobie
12-23-2002, 09:56 AM
Did you get Mr J's script working? Just curious...:cool:

spamfritter
12-23-2002, 10:00 AM
due to my distinct lack of knowledge about JavaScript and general coding, no. Is there anyone who would please tell me how I can get it working with url's?

Spamfritter

Download time doesn't matter as nearly all the people viewing this page will be on broadband, like myself, either through a uni campus cable service or ADSL.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum