Menu

Intro and Tips

sleen
2007-02-20
2013-04-17
  • sleen

    sleen - 2007-02-20

    Hello everyone, you are probably interested in open source tools that are useful, so let me introduce the XSPF PHP Playlist Generator.  It does something very simple - it allows you to make a dynamic XSPF playlists of mp3 from the contents of a server folder.

    If any of you are musicians and are looking for a quick and free way of providing mp3 playback on your site, then this is a good resource for you!

    You could put all your mp3 in one folder, or have different project folders with dedicated index pages.

    Here is a view of the package file structure:

    /music
    /music/index.html
    /music/xspf_player.swf
    /music/getid3/

    /music/music1
    /music/music1/index.html
    /music/music1/playlist_generator.php
    /music/music1/mp3
    /music/music1/mp3/12bar.mp3
    /music/music1/mp3/ballad.mp3

    /music/music2
    /music/music2/index.html
    /music/music2/playlist_generator.php
    /music/music2/mp3
    /music/music2/mp3/metal.mp3...

    All of which is uploaded to:

    /www.yoursite.com/music

    First a visitor views an index.html page, which sets off the playlist generator script on the mp3 folder, which feeds the flash player for artist and title if tags are present, or uses the filename if absent.  The flash player and getid3 folder are centralized, to work with multiple music folders that each contain their own index and script.  As a tip, duplicate the music2 folder in the package to setup a new project, then customize the page.

    To see an example of an overview of projects using the script with multiple folders:

    http://www.jonathanleonard.com/songs

    As an example of multiple players in a page:
    http://www.jonathanleonard.com/songs/catalog.html

     
    • James Tervit

      James Tervit - 2007-04-05

      Hi there,

      I have uploaded and installed the playlist utility, however I get an error when I try to generate the playlist

      PHP Warning:  Unknown(): Unable to load dynamic library './php_gd.dll' - ./php_gd.dll: cannot open shared object file: No such file or directory in Unknown on line 0

      I have GDloaded with php so am not sure why this shows, any ideas would be grateful.

       
    • cal fellows

      cal fellows - 2008-03-07

      1. Need default startup playlist image.
      2. Shuffle and Loop Images need transparency.
      3. Where is the FLA file, or where can I find it?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.