C# Class ADBaseLibrary.AdobeHDS.FragmentProcessor

显示文件 Open project: maxpiva/AnimeOfflineDownloader Class Usage Examples

Public Methods

Method Description
CloseFile ( ) : Task
DoNextFragment ( ) : Task
FragmentProcessor ( CookieCollection cookies, NameValueCollection headers, string uagent, int timeout, string referer, IWebProxy proxy, int threads, int retries, string outputfile ) : System
GetNextTag ( Stream stream ) : Task
InitFile ( ) : Task
Start ( string baseurl, string guid, Manifest manifest, Media media, CancellationToken token, IProgress progress ) : Task

Private Methods

Method Description
CallAkamaiDecryptionService ( List ts ) : void
GetStream ( string url ) : Task
ProcessFragment ( Stream s, int fragment ) : Task
ProcessTag ( Tag tag ) : Task
ProcessTags ( List tags ) : Task
QueueTags ( List ts, int fragment ) : Task
ThreadProcessor ( CancellationToken token, IProgress progress ) : Task
WriteTag ( Tag tag ) : Task

Method Details

CloseFile() public method

public CloseFile ( ) : Task
return Task

DoNextFragment() public method

public DoNextFragment ( ) : Task
return Task

FragmentProcessor() public method

public FragmentProcessor ( CookieCollection cookies, NameValueCollection headers, string uagent, int timeout, string referer, IWebProxy proxy, int threads, int retries, string outputfile ) : System
cookies System.Net.CookieCollection
headers System.Collections.Specialized.NameValueCollection
uagent string
timeout int
referer string
proxy IWebProxy
threads int
retries int
outputfile string
return System

GetNextTag() public method

public GetNextTag ( Stream stream ) : Task
stream Stream
return Task

InitFile() public method

public InitFile ( ) : Task
return Task

Start() public method

public Start ( string baseurl, string guid, Manifest manifest, Media media, CancellationToken token, IProgress progress ) : Task
baseurl string
guid string
manifest Manifest
media Media
token System.Threading.CancellationToken
progress IProgress
return Task