HLS input edit to use segment cache
This commit is contained in:
parent
6b88525e2f
commit
52a10fc177
2 changed files with 55 additions and 13 deletions
|
@ -50,19 +50,23 @@ namespace Mist{
|
|||
/// Keeps the segment entry list by playlist ID
|
||||
extern std::map<uint32_t, std::deque<playListEntries> > listEntries;
|
||||
|
||||
class SegmentDownloader{
|
||||
class SegmentDownloader: public Util::DataCallback{
|
||||
public:
|
||||
SegmentDownloader();
|
||||
HTTP::URIReader segDL;
|
||||
char *packetPtr;
|
||||
bool loadSegment(const playListEntries &entry);
|
||||
bool readNext();
|
||||
virtual void dataCallback(const char *ptr, size_t size);
|
||||
void close();
|
||||
bool atEnd() const;
|
||||
|
||||
private:
|
||||
bool encrypted;
|
||||
bool buffered;
|
||||
size_t offset;
|
||||
Util::ResizeablePointer outData;
|
||||
Util::ResizeablePointer * currBuf;
|
||||
size_t encOffset;
|
||||
unsigned char tmpIvec[16];
|
||||
mbedtls_aes_context aes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue