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 11 of 11
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Audio previews - multitrack?

    I tried making a JavaScript to do this, but I failed miserably. Then I searched for a working script I could modify, and found a few but none seem to work right when I modify them. So either what I want to do is difficult to do or I am just being moronic. I'll leave the voting on that issue for later - for now I would just appreciate a bit of help figuring this out

    I am setting up a page to sell some CD's for a friend who is a recording artist. He wants to have a no-download, 30-second preview of each track playable in the browser. I thought of flash, but we want to avoid any plug-ins. I tried plain old HTML, but it sets you up to download the .wav or the .mp3.

    So the basic desired layout of the page is this; CD picture with shopping cart buttons to the right of it, under it are the names of the tracks of the cd. Clicking the name will play a 30-second clip, no pop-up, no download, no plug-ins; and fully cross-browser compatible.

    Also, in addition to multiple tracks for the CD, there will be multiple CDs listed on the page, each with multiple tracks. I can get one audio clip to work, but when I add in more than one, it doesn't seem to work right. Is that possible?

    Finally, if the above is possible, is there a way to 'loop' the tracks, so that an option to listen to all tracks from one CD could be added as well? That is just extra, but I thought it would be a nice touch. Like a 'play all' link after the last track that will play track 1, immediately play track 2, etc. I am thinking I may just edit the audio files to have one longer .wav or .mp3 which has all the tracks in one file, but it would be more disk-efficient to just play them in order.

    Thanks for any help you can provide!

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    when you say no download are you refering to save as functionalities or are you saying you want to stream the files to the user.?

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I want it to be streamed - as it is only a 30 second preview clip, I do not mind if they choose to download it - but if I were to just directly link to a wav or an mp3 file, then half the browsers would get a download dialogue just trying to listen to it - that is what I want to avoid.

    Thanks!

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    :bump:

  • #5
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did you try converting the preview clips to MIDI format?

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I thought of doing that, since I have seen several MIDI jukeboxes I could use, but since this is to promote a CD, and has audio as well as music, and since MIDI format quality generally sucks for anyone with a low-end soundcard or on-board sound (to my knowledge...please correct me if I am wrong on that) - I thought I should not do that.

  • #7
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this:

    Code:
    <script>
    
    function playSound() {
    
    document.all.bgsound.src=mp3.value;
    }
    </script>
    
    <bgsound id="bgsound">
    
    <select id="mp3" size="5" onchange="playSound();">
    <option value="track1">Track 1
    <option value="track2">Track 2
    <option value="track3">Track 3
    <option value="track4">Track 4
    </select>
    jeeze ive posted that code a lot in these forums... to see what it does go here
    Last edited by DooM_MonkeY; 06-06-2004 at 02:56 AM.
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    đ­˘M_M÷˝kŔą

  • #8
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    DooM_MonkeY you code doesn't work for me in Mozilla Firefox.

  • #9
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    o im sorry it might only work in IE5 cause thats what I have

    where there is "value" you did put the url's didnt you? or is it because of the bgsound tag?
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    đ­˘M_M÷˝kŔą

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Doesn't work in IE6 either...better quit posting it.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #11
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it might just take a while to load, because it works just fine on mine, you know to put the url in the value right? (you probably do im just checking), but yeah, it is probably because it takes so long to load the dang song
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    đ­˘M_M÷˝kŔą


  •  

    Posting Permissions

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