HLS input converted to URIReader, temporarily disabled clearkey encryptionHLS input fixes:

- Re-enabled file-based input
- Added support for clearkey-encrypted file-based input
- Converted to HTTP::URIReader for all input types
- Both live and VoD functional
 support
This commit is contained in:
Thulinma 2020-09-07 17:13:00 +02:00
parent 61b0a90598
commit 19f1df18aa
3 changed files with 224 additions and 157 deletions

View file

@ -9,8 +9,8 @@
#include <string>
#include <vector>
//#include <stdint.h>
#include <mist/downloader.h>
#include <mist/http_parser.h>
#include <mist/urireader.h>
#define BUFFERTIME 10
@ -39,10 +39,19 @@ namespace Mist{
class SegmentDownloader{
public:
SegmentDownloader();
HTTP::Downloader segDL;
const char *packetPtr;
HTTP::URIReader segDL;
char *packetPtr;
bool loadSegment(const playListEntries &entry);
bool readNext();
void close();
bool atEnd() const;
private:
bool encrypted;
Util::ResizeablePointer outData;
size_t encOffset;
unsigned char tmpIvec[16];
mbedtls_aes_context aes;
};
class Playlist{