• Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorAnthony
    • CommentTimeMay 31st 2009
    I'm attempting to create a flash MP3 player and have been playing around with the one here.

    I'm 90% there, and the end result can be viewed here, but I can't figure out for the life of me how to get a track name to display on the playlist rather than the URL of the MP3.

    This is the code I've got so far:

    <object type="application/x-shockwave-flash" data="http://michaelgiacchinomusic.com/player/player.swf" width="400" height="150">
    <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_multi.swf" />
    <param name="bgcolor" value="#666666" />
    <param name="FlashVars" value="mp3=http%3A//michaelgiacchinomusic.com/player/startrek.MP3&amp;width=400&amp;height=150&amp;showvolume=1&amp;buttonwidth=25&amp;sliderwidth=10&amp;volumewidth=35&amp;volumeheight=12&amp;loadingcolor=fffffa&amp;bgcolor=666666&amp;bgcolor1=666666&amp;bgcolor2=666666&amp;slidercolor1=ffffff&amp;slidercolor2=ffffff&amp;sliderovercolor=909090&amp;buttonovercolor=909090&amp;playlistcolor=1e1e1e&amp;currentmp3color=ffffff&amp;scrollbarovercolor=363636&amp;showplaylistnumbers=0" />


    <body bgcolor="#1E1E1E">

    Can anyone help? confused
    • CommentTimeMay 31st 2009
    Well, as the documentation says, you can add the titles by adding it to the FlashVars attribute, like this:

    <param name="FlashVars" value="mp3=http%3A//michaelgiacchinomusic.com/player/startrek.MP3&width=400&height=150&showvolume=1&buttonwidth=25&sliderwidth=10&volumewidth=35&volumeheight=12&loadingcolor=fffffa&bgcolor=666666&bgcolor1=666666&bgcolor2=666666&slidercolor1=ffffff&slidercolor2=ffffff&sliderovercolor=909090&buttonovercolor=909090&playlistcolor=1e1e1e&currentmp3color=ffffff&scrollbarovercolor=363636&showplaylistnumbers=0&title=Main Theme" />

    However, this will be very unfriendly to code. A better alternative would be to supply a .txt file that contains both the url's and the titles.
    playlist The text file to load. Each line cantains the url of the mp3. You can add the title after a | on the same line.

    // which means adding the following to the FlashVars instead of mp3=...

    // and that file looking something like this:
    http://michaelgiacchinomusic.com/player … 1.mp3|Main Theme
    http://michaelgiacchinomusic.com/player … mp3|Second song

    I don't think it's possible of reading the track titles from the mp3's directly, or at least it isn't mentioned...
    What do you hear? Nothing but the rain...
    • CommentAuthorAnthony
    • CommentTimeMay 31st 2009
    Perfect! Thanks! cool beer