Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Suffolk, UK
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Successive sounds

    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
    Please be patient with me. I am a true beginner.

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Scotland
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Best bet might be to create a small i-frame using this code:
    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.
    My body's a temple... and like those ancient Greek ones it's a ruin
    sweenster.co.uk

  • #3
    New Coder
    Join Date
    Dec 2002
    Location
    Suffolk, UK
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorry

    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
    Please be patient with me. I am a true beginner.

  • #4
    New Coder
    Join Date
    Jun 2002
    Location
    Caerdydd
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    "nam et ipsa scientia potentas est" - Francis Bacon

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.
    Last edited by zoobie; 12-20-2002 at 07:31 AM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #6
    New Coder
    Join Date
    Dec 2002
    Location
    Suffolk, UK
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks for continuing efforts but...

    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!
    Last edited by spamfritter; 12-20-2002 at 05:10 PM.
    Please be patient with me. I am a true beginner.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Well, good luck to ya there!

    PS - There isn't any Java forum here.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #8
    New Coder
    Join Date
    Dec 2002
    Location
    Suffolk, UK
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorry Zoobie

    me being silly again and being lazy about JavaScript instead of Java
    Please be patient with me. I am a true beginner.

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Did you get Mr J's script working? Just curious...
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #10
    New Coder
    Join Date
    Dec 2002
    Location
    Suffolk, UK
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    nope

    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.
    Please be patient with me. I am a true beginner.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •