[Laszlo-dev] timeout while data still loading
Denis Bohm
denis at fireflydesign.com
Thu Mar 16 02:01:51 EST 2006
I put the change below into 3.2cr2 source and built a new version that
I'm testing to see if it fixes the problem (so far it seems to).
Original Code:
if ( this.checkonce ){
this.owner.setAttribute( "loadratio" ,
this.mc.lmc.getBytesLoaded() /
this.mc.lmc.getBytesTotal() );
}
Modified Code:
if ( this.checkonce ){
var lr = this.mc.lmc.getBytesLoaded() /
this.mc.lmc.getBytesTotal();
if (lr != this.owner["loadratio"]) {
this.owner.setAttribute("loadratio" , lr);
//reset timeout for media which is streaming
this.mc.loadtime = getTimer();
}
}
Henry Minsky wrote:
> Which release of the LPS sources are you looking at?
>
>
> On 3/15/06, *Denis Bohm* <denis at fireflydesign.com
> <mailto:denis at fireflydesign.com> > wrote:
>
> It looks to me like the first "if" block in LzMediaLoader.testLoad
> is missing "this.mc.loadtime = getTimer()" like the other blocks
> have...
>
> Denis Bohm wrote:
> I have an application that downloads swf movies that can be fairly
> large. I am showing download progress so the user knows what is
> going on. Obviously, some people have faster network speeds that
> others - so the download time can vary a lot. I have the timeout
> set to 30 seconds currently. But what I'm seeing is that the
> timeout seems to apply to the complete download from the start
> time. For example, if the movie is loading at a constant rate and
> it is 95% done, but 30 seconds has passed since the request was
> started then the timeout occurs and no movie is loaded. What I
> had expected was that the timeout applies to the last data
> received, so that it would only timeout if no data was transmitted
> for the last 30 seconds.
>
> Can anyone confirm the behavior I am observing? If that's the way
> it was intended to work, is there any way to change it so that it
> works the way I expected it to work?
>
> Note that I can't just increase the timeout value because there
> are other issues, such as 404 requests staying in the load queue
> until the timeout period occurs (*LPP-1652
> <http://www.openlaszlo.org/jira/browse/LPP-1652>)*, that cause
> other problems.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org <mailto:Laszlo-dev at openlaszlo.org>
>
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org <mailto:Laszlo-dev at openlaszlo.org>
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060316/3d78a1c6/attachment.html
More information about the Laszlo-dev
mailing list