forked from rofafor/vdr-plugin-iptv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotocolm3u.h
32 lines (28 loc) · 824 Bytes
/
protocolm3u.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include <string>
#include <vdr/tools.h>
#include <vdr/channels.h>
#include "protocolif.h"
#include "m3u8handler.h"
#include "streambasehandler.h"
#include "source.h"
class cIptvProtocolM3U : public cIptvProtocolIf {
private:
int channelId;
std::string url;
bool isActiveM;
int useYtdlp;
M3u8Handler m3u8Handler;
StreamBaseHandler handler;
char handlerType;
public:
cIptvProtocolM3U();
~cIptvProtocolM3U() override;
int Read(unsigned char *bufferAddrP, unsigned int bufferLenP) override;
bool SetSource(SourceParameter parameter) override;
bool SetPid(int pidP, int typeP, bool onP) override;
bool Open() override;
bool Close() override;
cString GetInformation() override;
static std::string findUrl(int parameterP, const char* locationP);
};