Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download speed is 0 #73

Open
shenfu1991 opened this issue Nov 3, 2016 · 0 comments
Open

download speed is 0 #73

shenfu1991 opened this issue Nov 3, 2016 · 0 comments

Comments

@shenfu1991
Copy link

when i run blow code ,log show download speed and remainingTime is 0,why?

TCBlobDownloadManager *sharedManager = [TCBlobDownloadManager sharedInstance];
    
    
    TCBlobDownloader *downloader =[sharedManager startDownloadWithURL:[NSURL URLWithString:@"http://ofqnohifh.bkt.clouddn.com/%E3%80%90%E9%98%BF%E5%8F%B6%E5%90%9B%E3%80%91%E6%81%8B%E7%88%B1%E5%BE%AA%E7%8E%AF%E4%B9%8B%E4%B8%89%E5%88%86%E9%92%9F%E5%B8%A6%E4%BD%A0%E6%B8%B8%E5%B2%B3%E9%98%B3.mp4"] customPath:nil firstResponse:^(NSURLResponse *response) {
        
    } progress:^(uint64_t receivedLength, uint64_t totalLength, NSInteger remainingTime, float progress) {
        
        NSLog(@"speed=%ld,remainingTime=%ld",downloader.speedRate,downloader.remainingTime);
        
    } error:^(NSError *error) {
        
    } complete:^(BOOL downloadFinished, NSString *pathToFile) {
        
    }];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant