gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #40459] master-21901-77966b2 doesn’t show downloaded


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #40459] master-21901-77966b2 doesn’t show downloaded bytes
Date: Mon, 04 Jan 2016 04:49:31 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.5) Gecko/20150606 Firefox/31.9 PaleMoon/25.5.0

Follow-up Comment #17, bug #40459 (project gnash):

This issue is still consistenly reproducible on current git version of Gnash
when download simulator is in use.

I have made test SWF files (using libming's MakeSWF), one loader that tries
to download another Flash file from a custom download simulation server
which introduces brief pause on specific positions in the stream:

My loaded SWF in this case is 37288 bytes long. Server output lines begin
with `htcheckpoint:`, loader SWF's output lines begin with `testloader:`.

Following is a trace log from Flash Player (interleaved with server output):

testloader: starting download
htcheckpoint: request received, pausing 2000 ms
htcheckpoint: sent 0 byte(s), pausing 2000 ms
testloader: download started
htcheckpoint: sent 1 byte(s), pausing 2000 ms
Warning: Not a known player download type,
http://localhost:8085/testpattern.swf
testloader: downloading: 0/0
htcheckpoint: sent 1621 byte(s), pausing 2000 ms
testloader: downloading: 1621/37288
htcheckpoint: sent 9322 byte(s), pausing 2000 ms
testloader: downloading: 5717/37288
testloader: downloading: 9322/37288
htcheckpoint: sent 18644 byte(s), pausing 2000 ms
testloader: downloading: 17514/37288
testloader: downloading: 18644/37288
htcheckpoint: sent 27966 byte(s), pausing 2000 ms
testloader: downloading: 26836/37288
testloader: downloading: 27966/37288
htcheckpoint: sent 37287 byte(s), pausing 2000 ms
testloader: downloading: 32062/37288
testloader: downloading: 36158/37288
testloader: downloading: 37287/37288
htcheckpoint: sent 37288 byte(s), pausing 2000 ms
testloader: downloading: 37288/37288
testloader: download completed: status 200
testloader: started action


Following is a trace log from Gnash (interleaved with server output):

126 TRACE: testloader: starting download
htcheckpoint: request received, pausing 2000 ms
htcheckpoint: sent 0 byte(s), pausing 2000 ms
htcheckpoint: sent 1 byte(s), pausing 2000 ms
htcheckpoint: sent 1621 byte(s), pausing 2000 ms
6146 TRACE: testloader: download started
6147 TRACE: testloader: downloading: 20/37288
6147 TRACE: testloader: download completed: status 0
6147 TRACE: testloader: started action
htcheckpoint: sent 9322 byte(s), pausing 2000 ms
htcheckpoint: sent 18644 byte(s), pausing 2000 ms
htcheckpoint: sent 27966 byte(s), pausing 2000 ms
htcheckpoint: sent 37287 byte(s), pausing 2000 ms
htcheckpoint: sent 37288 byte(s), pausing 2000 ms


You'd see that on Gnash...
* `OnLoadStart()` was called when first frame is completed rather than when
HTTP response was received.
* `OnLoadProgress()` was only called only one time when first frame is
completed, rather than every time a block of data is received. Reported number
of bytes downloaded was also inaccurate (20 instead of 1621).
* `OnLoadComplete()` was called even when the download was not yet completed.
HTTP response code reported to the callback was also incorrect (0 instead of
200).

Test SWFs, source code, download simulator script, and full debug logs
are attached as `movieloader-progresscheck.zip`.

Gnash: 0.8.11dev (git 15d61a8 26-Dec-2015)
Flash Player: 11.2 r202 (11.2.202.491) Standalone
System: Debian GNU/Linux 7.0 Wheezy i386

P.S. The download simulation server runs on TCP port 8085 by default;
this it can be changed by adding `-p PORTNUMBER` option to server's
command line. URL in loader SWF must be adjusted accordingly if the port
is changed.


(file #35912)
    _______________________________________________________

Additional Item Attachment:

File name: movieloader-progresscheck.zip  Size:25 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40459>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]