Media requests have lowest priority. Michael, I think we want to handle
this in our app.
A
On Jul 21, Henry Minsky wrote:
> I see there is code in the swf loader to sort the queue, based on a sort
> predicate function,
> there is this code in LzLoadQueue.as:
>
> LzLoadQueue.defaultPriorityAssignment = function( loadmc , prior ){
> if ( prior != null ) return prior;
> if ( loadmc.lzt == "eval" ) return 2;
> if ( loadmc.lzt == "data" ) return 4;
> if ( loadmc.lzt == "media" ) {
> return 6;
> //PC?
> //if ( loadmc.lzt == "media" ) return 6;
> } else {
> return 8;
> }
> }
>
>
> LzLoadQueue.addPriorityFunction( LzLoadQueue.defaultPriorityAssignment );
>
> so there is supposed to be some sort of sorting going on for media priority,
> but I don't know whether that gives media
> lower weight than data or higher, or even if it's been tested in the last
> few years.
>
> You could try reversing the weights on media and data by writing a new
> priority function , (I would clear the default
> sort function first like this below)
>
> function yourNewSortFunction (...) { }
> LzLoadQueue.queueSorters = [];
> LzLoadQueue.addPriorityFunction(yourNewSortFunctionHere );
>
>
>
>
> On 7/21/06, Michael Gregor <[EMAIL PROTECTED]> wrote:
> >
> > Henry,
> >
> > Is there anyway I can prioritize a request for a views source to an
> > external asset?
> >
> > in other words...
> >
> > Can I set set media asset requests in the front of the media loader
> > queue? If so, how?
> >
> > thanks,
> >
> > MG
> >
> >
> >
>
>
>
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev