advertisement

Article:
  Build a Simple MP3 Player for Your Site
Subject:   Opened window doesn't play the .mp3
Date:   2007-10-31 16:28:42
From:   tpixton
I've set up your javascript link and pathways correctly, and the soundpop.js gets called for correctly from the link in my page and opens the little orange window. However, the linked .mp3 file doesn't play. The path to the .mp3 is correct because it opens when I disable the script (replacing the current page completely, which I don't want, obviously). When I click on "download this file" in the orange window, Safari says "Can't find the file" and shows a path name completely at odds with what I've given in the soundfiledesc part of the script. Any ideas?
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • David Battino photo Opened window doesn't play the .mp3
    2007-10-31 17:05:40  David Battino | O'Reilly Blogger [Reply | View]

    @Tpixton: The most common problem is including non-alphanumeric characters in the song title. Unescaped apostrophes, for example, will break the JavaScript. See this follow-up article for more background:

    http://www.oreillynet.com/pub/a/oreilly/digitalmedia/2007/06/08/web-audio-javascript-tricks.html