summaryrefslogtreecommitdiff
path: root/m3u8Parser.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-01-11 15:14:03 +0100
committerchriszero <zerov83@gmail.com>2015-01-11 15:14:03 +0100
commit508ba3458094f0c30b278cc05abc626b6f3940e0 (patch)
tree12592e3fb841f80ad1c61d07b3f9242ad94d2cbe /m3u8Parser.h
parenta9dd0c6a322f139e03a0ba4570e2a78508ddd6c3 (diff)
downloadvdr-plugin-plex-508ba3458094f0c30b278cc05abc626b6f3940e0.tar.gz
vdr-plugin-plex-508ba3458094f0c30b278cc05abc626b6f3940e0.tar.bz2
Removed Mplayer support.
Added HLS Streaming Player for directly play in VDR
Diffstat (limited to 'm3u8Parser.h')
-rw-r--r--m3u8Parser.h37
1 files changed, 37 insertions, 0 deletions
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 <vector>
+#include <string>
+#include <iostream>
+
+class cM3u8Parser
+{
+public:
+ struct playListItem {
+ int length;
+ int bandwidth;
+ int programId;
+ std::string file;
+ int size;
+ };
+private:
+ void Init();
+
+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