Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
19
Src/Plugins/Input/in_flv/BackgroundDownloader.h
Normal file
19
Src/Plugins/Input/in_flv/BackgroundDownloader.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
#include <bfc/platform/types.h>
|
||||
|
||||
class api_httpreceiver;
|
||||
|
||||
class Downloader
|
||||
{
|
||||
public:
|
||||
class DownloadCallback
|
||||
{
|
||||
public:
|
||||
virtual int OnConnect(api_httpreceiver *http)=0;
|
||||
virtual int OnData(void *buffer, size_t bufferSize)=0;
|
||||
};
|
||||
|
||||
|
||||
bool Download(const char *url, DownloadCallback *callback, uint64_t startPosition = 0);
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue