new Download(params, options)
Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            object | parameters connected with download like id, bandwidth, contentType, remoteUrl, localUrl see util class downloadUtil.getDownloadLinks | 
options | 
            
            object | options chosen for whole manifest, like number of chunks, retry, | 
Methods
createDownloader(remoteUrlopt, localUrlopt, optionsopt) → {void}
    Creates file downloader
    Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
remoteUrl | 
            
            string | 
                
                    <optional> | 
            
            
            url of fragment | 
localUrl | 
            
            string | 
                
                    <optional> | 
            
            
            local url where to download fragment | 
options | 
            
            object | 
                
                    <optional> | 
            
            
            some options | 
Returns:
- Type
 - void
 
start() → {void}
Returns:
- Type
 - void
 
stop(resolveopt) → {void}
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
resolve | 
            
            function | 
                
                    <optional> | 
            
            
            callback to be invoked when stop was successfully | 
Returns:
- Type
 - void
 
stopPromise() → {Promise}
Returns:
    - promise
- Type
 - Promise