8000 GitHub - bux/chunkload.js: XHR downloads files in chunks
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

bux/chunkload.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

chunkload.js

XHR downloads a file in chunks, puts the chunks together and returns the file.

Usage

var cl = new Downloader.ChunkLoader("big_buck_bunny.webm",  // fileGuid
                                    "/files/",              // requestUrl
                                    "getChunkCount",        // chunkCountMethod
                                    "getChunk",             // getChunkMethod
                                    "fileName",             // fileGuidParamName
                                    "chunkNr");             // chunkNrParamName
                                    
cl.startDownload(function (fileBlob) {
  onFileDownloaded(fileBlob);
  cl = null;
});

About

XHR downloads files in chunks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0