Getting rid PlaylistItem and Creating a new Playlist

View: New views
1 Messages — Rating Filter:   Alert me  

Getting rid PlaylistItem and Creating a new Playlist

by David Hough :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Currently Zinf has two seperate ways of looking up track metadata with  
both currently working in parallel, the new MusicDB used by the new  
MusicBrowserMM and the old MusicCatalog used by everything else.

The old MusicCatalog is usually accessed via a PlaylistItem which was  
stored in the Playlist. The Playlist dealt with the actual process of  
looking up metadata and associating it with each track in the playlist.  
The new MusicDB architecture, however, seperates the metadata from the  
track in the playlist, with metadata being looked up as needed by the  
plugins using the MusicDB.

Therefore, by switching everything to using the new MusicDB, there is no  
longer a need for PlaylistItem or MusicCatalog. As the use of PlaylistItem  
is so ingrained in the current implementation of the Playlist, when  
getting rid of PlaylistItem it is probably much easier to just throw away  
the old playlist and start over.

I've made a start on doing exactly this, and now have some vaugly working  
code avaliable from my Arch repositry as the branch

david@.../zinf--noitem--0.1

I've deleted both the old MusicCatalog and Playlist, and started work on a  
prototype of a new Playlist that just uses track URLs instead of  
PlaylistItem. This obviously requires some quite significant changes to  
the rest of Zinf as well, some of which I've also done, but lots of things  
have also been broken and not yet fixed by this.

I've currenlty only got the begginings of a new plylist implementation  
(you can only add tracks at the moment, not move, remove, sort them etc.).  
I've also split it into two seperate classes, PlaylistManager and  
Playlist. PlaylistManager is intended to deal with switching between  
multiple playlists, and providing the interface to the Player so it does  
not need to know about multiple playlists, and the Playlist is simply the  
list of URLs with an associated current index.

If anyone has any thoughts/code on what the playlist implementation should  
look like, please post them to the mailing list so we can create a good  
replacment for the old playlist.

Cheers,
David

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Zinf-devel mailing list
Zinf-devel@...
https://lists.sourceforge.net/lists/listinfo/zinf-devel
LightInTheBox - Buy quality products at wholesale price