|
From: Avital O. <avi...@gm...> - 2008-02-16 23:55:01
|
Hello.
It's been a while since I had some free time, but today I started going
through the code to figure out how to implement DJ Mode.
First of all, the code is so nicely organized and documented -- it was a
real pleasure exploring and studying this code (it's my first time with
ActionScript!). Well done.
I realized that I should hook to the callback from ObjectLoader -
loadFromUrlFinished to know when to start preloading the next track. I
tracked the current callback implementation and all it does is track from
what I could tell. The question is - how do I add this new functionality
(preloading) the next track into this function properly?
*
*My Question:*
*In CoreController:
private function traceLoadStatus( bForceTrace:Boolean )
{
var pl:Playlist = m_model._getPlaylist();
var bLoadStatusChanged:Boolean = pl.traceLoadStatus();
if( bForceTrace || bLoadStatusChanged )
{
notifyAll(PlayerDefines.LOAD_STATUS_CHANGED);
}
}
yet PlayListEntry.traceLoadStatus() never returns a value. Is it supposed
to?
And, anyways, is the right place to put the trigger for preloading the next
track in CoreController.loadOfPleFinished?
---
Regarding the sample sets, I am trying to play sets by other dj's. They are
copyrighted but do you think this would count for fair use? If so, I can
send them or upload them...
Avital.
|