cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5631) FileTransfer.download progress returns excatly twice as much loaded bytes on android
Date Fri, 10 Jan 2014 17:18:54 GMT

    [ https://issues.apache.org/jira/browse/CB-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13868010#comment-13868010
] 

ASF subversion and git services commented on CB-5631:
-----------------------------------------------------

Commit feec947bc9f38defb90276d820f215381369d6ad in branch refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=feec947 ]

CB-5631 Add FileTransfer test for progress.loaded being too big.


> FileTransfer.download progress returns excatly twice as much loaded bytes on android
> ------------------------------------------------------------------------------------
>
>                 Key: CB-5631
>                 URL: https://issues.apache.org/jira/browse/CB-5631
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File Transfer
>    Affects Versions: 3.2.0
>            Reporter: Malte Legenhausen
>
> When I download a file under android and calculate the progress of the download the onprogress
event.loaded variable is set to twice as much bytes as there where total available.
> I fixed the bug for me by simply dividing the result of getTotalRawBytesRead by 2.
> This bug occurs since cordova 3.0.0 only on Android. Tests on iOS return the right result.
I downloaded a video file from an apache http server.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message