blob: 3bd0ae24bd63d8165f211aef4ad995ffbd354846 (
plain)
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
33
34
35
36
37
38
|
#ifndef M3U8PARSER_H
#define M3U8PARSER_H
#include <vector>
#include <string>
#include <iostream>
class cM3u8Parser
{
public:
struct playListItem {
int length;
int bandwidth;
int programId;
std::string file;
int size;
};
private:
void Init();
void eDump(std::istream &m3u8);
public:
std::vector<playListItem> vPlaylistItems;
int TargetDuration;
int MediaSequence;
bool MasterPlaylist;
bool AllowCache;
bool Parse(std::istream &m3u8);
public:
cM3u8Parser(std::istream &m3u8);
cM3u8Parser();
~cM3u8Parser() {};
};
#endif // M3U8PARSER_H
|