From 508ba3458094f0c30b278cc05abc626b6f3940e0 Mon Sep 17 00:00:00 2001 From: chriszero Date: Sun, 11 Jan 2015 15:14:03 +0100 Subject: Removed Mplayer support. Added HLS Streaming Player for directly play in VDR --- m3u8Parser.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 m3u8Parser.h (limited to 'm3u8Parser.h') diff --git a/m3u8Parser.h b/m3u8Parser.h new file mode 100644 index 0000000..0f52002 --- /dev/null +++ b/m3u8Parser.h @@ -0,0 +1,37 @@ +#ifndef M3U8PARSER_H +#define M3U8PARSER_H + +#include +#include +#include + +class cM3u8Parser +{ +public: + struct playListItem { + int length; + int bandwidth; + int programId; + std::string file; + int size; + }; +private: + void Init(); + +public: + std::vector vPlaylistItems; + int TargetDuration; + int MediaSequence; + bool MasterPlaylist; + bool AllowCache; + bool Parse(std::istream &m3u8); + +public: + cM3u8Parser(std::istream &m3u8); + cM3u8Parser(); + ~cM3u8Parser() {}; + +}; + + +#endif // M3U8PARSER_H -- cgit v1.2.3