From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Plugins/Input/in_flv/BackgroundDownloader.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Src/Plugins/Input/in_flv/BackgroundDownloader.h (limited to 'Src/Plugins/Input/in_flv/BackgroundDownloader.h') diff --git a/Src/Plugins/Input/in_flv/BackgroundDownloader.h b/Src/Plugins/Input/in_flv/BackgroundDownloader.h new file mode 100644 index 00000000..01b08e9a --- /dev/null +++ b/Src/Plugins/Input/in_flv/BackgroundDownloader.h @@ -0,0 +1,19 @@ +#pragma once +#include + +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); + +}; \ No newline at end of file -- cgit