Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
XSPF Player
Date: 2006/10/07 07:07 By: kn0w3r Status: User  
Karma: 22  
Junior Joomlapolitan

Posts: 47
graphgraph
XSPF Player 0.1 Released

XSPF Player is a flash-based web application that uses xspf playlist format to play mp3 songs. XSPF is the XML Shareable Playlist Format. The software is written in Actionscript 2. It is based on XSPF Web Music Player from http://musicplayer.sourceforge.net . A user have to put the xspf file url to their profile to get it working.




DOWNLOAD

Changeslog:
0.1 - XSPF Player plugin released
0.2 - cb.xspfplayer.xml and cb.xspfplayer.php is renamed to xspfplayer.xml and xspfplayer.php to follow the CB API guidelines

Post edited by: kn0w3r, at: 2006/10/08 05:03
My plugins
Xfire Miniprofile
Feed2JS
Simple MSN Weather
XSPF Player
Dark Camouflage Template

http://kn0w3r.xhydro.net
Click here to see the profile of this user The administrator has disabled public write access.

Re:XSPF Player
Date: 2006/10/07 10:09 By: nant Status: Admin  
Karma: 463  
Admin

Posts: 5969
graph
First of all excelent job!
Nice to see people are starting to get the hang of the plugin API - I am certainly having a great time learning a great deal.

While working on the hello world plugin (see here) I had to re-read the API documentation (see download area) and continuously refer back to it. Also had some questions for Beat about guidelines that should be followed to avoid future problems etc.

Looking at your plugin I have identified the following issues:

  • Section 1.2 of the API - Plug-in naming states that the plugin names that start with cb should be avoided since they are reserved for core CB Team plugins. So you should rename your cb.xspfplayer.xml and cb.xspfplayer.xml (to get rid of the cb in the begining) and also modify the <filename plugin="cb.xspfplayer">cb.xspfplayer.php</filename> line in the xml file.

  • also your class="getXSPFPlayerTab" assignment in the XML file should be renamed to all lower case except the Tab. So it should be getxspfplayerTab. This is something that wasn't stated in the API doc (but Beat will update it). Its for compatibility with Unix systems that are case sensitive.

  • Not sure how the actual code works but shouldn't your "" (No) values in the XML parameter definitions be something like "&autoplay=false" ?

  • In your php file you should change the $xspfap = $params->get('xspfap', ''); type statements and instead of '' you should put the default values of the parameters (if the previous comment is not valid then these are just fine)


  • Thanks again for sharing this - can't wait to try it out!

    Post edited by: nant, at: 2006/10/07 12:00
    Nick A.
    CB Core Team Member
    Support CB Development and Get Detailed Documentation
    Developer of Nant's Gallery plugin
    CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
    Developer of CB AutoWelcome Plugin
    CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
    People ignoring your call for help? Read this!
    FAQ you
    Joomlapolis Extensions Directory (new)- check it out!
    Click here to see the profile of this user The administrator has disabled public write access.

    Re:XSPF Player
    Date: 2006/10/07 15:50 By: kn0w3r Status: User  
    Karma: 22  
    Junior Joomlapolitan

    Posts: 47
    graphgraph
    First of all excelent job!
    Nice to see people are starting to get the hang of the plugin API - I am certainly having a great time learning a great deal.

    While working on the hello world plugin (see here) I had to re-read the API documentation (see download area) and continuously refer back to it. Also had some questions for Beat about guidelines that should be followed to avoid future problems etc.

    Looking at your plugin I have identified the following issues:

  • Section 1.2 of the API - Plug-in naming states that the plugin names that start with cb should be avoided since they are reserved for core CB Team plugins. So you should rename your cb.xspfplayer.xml and cb.xspfplayer.xml (to get rid of the cb in the begining) and also modify the <filename plugin="cb.xspfplayer">cb.xspfplayer.php</filename> line in the xml file.


  • Ohh I will fix that. How about the zip file name? Should i rename the file from cb_xspfplayer.zip to xspfplayer.zip?

  • also your class="getXSPFPlayerTab" assignment in the XML file should be renamed to all lower case except the Tab. So it should be getxspfplayerTab. This is something that wasn't stated in the API doc (but Beat will update it). Its for compatibility with Unix systems that are case sensitive.


  • I will fix that too

  • Not sure how the actual code works but shouldn't your "" (No) values in the XML parameter definitions be something like "&autoplay=false" ?


  • "" works same as "&autoplay=false". I think its better if I use the "" instead of the "&autoplay=false"

  • In your php file you should change the $xspfap = $params->get('xspfap', ''); type statements and instead of '' you should put the default values of the parameters (if the previous comment is not valid then these are just fine)


  • same as above

    Thanks for the comments and suggestions. I will try to upload the latest plugin asap but I need to know whether I have to rename the file from cb_xspfplayer.zip to xspfplayer.zip. Thanks again

    Post edited by: kn0w3r, at: 2006/10/07 15:52
    My plugins
    Xfire Miniprofile
    Feed2JS
    Simple MSN Weather
    XSPF Player
    Dark Camouflage Template

    http://kn0w3r.xhydro.net
    Click here to see the profile of this user The administrator has disabled public write access.

    Re:XSPF Player
    Date: 2006/10/07 15:58 By: nant Status: Admin  
    Karma: 463  
    Admin

    Posts: 5969
    graph
    I would put all the files in a plug_xspfplayer folder and then zip the folder to create a plug_xspfplayer.zip file.
    Nick A.
    CB Core Team Member
    Support CB Development and Get Detailed Documentation
    Developer of Nant's Gallery plugin
    CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
    Developer of CB AutoWelcome Plugin
    CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
    People ignoring your call for help? Read this!
    FAQ you
    Joomlapolis Extensions Directory (new)- check it out!
    Click here to see the profile of this user The administrator has disabled public write access.

    Re:XSPF Player
    Date: 2006/10/08 05:10 By: kn0w3r Status: User  
    Karma: 22  
    Junior Joomlapolitan

    Posts: 47
    graphgraph
    Done. Version 0.2 is available for download
    My plugins
    Xfire Miniprofile
    Feed2JS
    Simple MSN Weather
    XSPF Player
    Dark Camouflage Template

    http://kn0w3r.xhydro.net
    Click here to see the profile of this user The administrator has disabled public write access.

    Re:XSPF Player
    Date: 2006/10/08 14:09 By: Jesuslavex Status: User  
    Karma: 1  
    Junior Joomlapolitan

    Posts: 29
    graphgraph
    I'm seeing some problems with this plug in (though I think its a GREAT step in a good direction)

    For some reason, my playlist isnt streaming audio, though the playlist url and the list itself is set up correctly. I'm sure I can figure it out on my own, but I would love to see an included tutorial, and demo playlist and music link included so people can see how to set this up. There are people (as strange as it may sound) who dont know how to set these things up

    On uninstall, SQL info is left in the tables, so it requires a manual deletion for reinstall (If something happens during installation)

    -----------
    For the future....

    Given the fact Joomla 1.5 will include FTP functionality right out of the box, I would like to see users be able to uploard music and have their playlists automatically generate to do away with coding it by hand.

    I would also like to see the playlist centered in the tab to give it a more professional look and feel.

    -----------

    Great plug in! Really good first step!

    Post edited by: Jesuslavex, at: 2006/10/08 14:11
    Click here to see the profile of this user The administrator has disabled public write access.

    << Start < Prev 1 2 Next > End >>

    Documentation

    Documentation Subscription Service
    (updated for CB 1.2 RC2)

    What?

    Why?

    Where?

    Just click here for answers!

    Click here for a yearly subscription: subscribe now

    Download Latest Release

    The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
    You need to be a registered member of Joomlapolis to download.

    The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
    It is available as "thank you" to all CB documentation subscribers at this time.

    CB Login