advertisement

Article:
  Build a Simple MP3 Player for Your Site
Subject:   Preventing Browsers from Automatically Downloading Embedded MP3s
Date:   2007-07-04 23:03:00
From:   theJoshMeister
I only want my embedded MP3s to start downloading *after* I click on the play button. (I want to have several embedded mini-players on the same page, which makes this especially important; it's a huge waste of bandwidth for several MP3s to download at once.) Is there any way to prevent embedded MP3s from downloading automatically when the page loads?


Thanks in advance for any suggestions you can offer.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • David Battino photo Preventing Browsers from Automatically Downloading Embedded MP3s
    2007-07-05 11:52:12  David Battino | O'Reilly Blogger [Reply | View]

    @Josh: I assume you're referring to the example on page 3 of “Build a Better Web Audio Player” (http://digitalmedia.oreilly.com/2006/05/31/build-a-better-web-audio-player.html), because the pop-up method shown here doesn’t load the file until the link is clicked.

    I’ve explored two alternatives. This one (http://digitalmedia.oreilly.com/2007/06/08/web-audio-javascript-tricks.html) embeds a player right in front of the link when a visitor clicks the link.

    This one (http://digitalmedia.oreilly.com/2006/09/29/two-slick-quicktime-tricks.html?page=2) “unhides” the player when the link is clicked.
    • Preventing Browsers from Automatically Downloading Embedded MP3s
      2007-07-06 03:32:11  theJoshMeister [Reply | View]

      Your "Slick Trick No. 2" from http://digitalmedia.oreilly.com/2006/09/29/two-slick-quicktime-tricks.html?page=2 seems like it should work well for me. Thank you so much!