aboutsummaryrefslogtreecommitdiff
path: root/include/M3U8.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-04 05:01:36 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-04 08:44:51 +0200
commit87c8a2986d468a3fc897169c1b00fc4695e09d39 (patch)
treebfd1d39d84680389a2bd30c9e1cdde5e844a3a5b /include/M3U8.hpp
parent84f501f5211f09a09fc5384bf15415d0d0445a96 (diff)
Add dramacool
Diffstat (limited to 'include/M3U8.hpp')
-rw-r--r--include/M3U8.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/M3U8.hpp b/include/M3U8.hpp
new file mode 100644
index 0000000..cefec16
--- /dev/null
+++ b/include/M3U8.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+namespace QuickMedia {
+ struct M3U8Stream {
+ int width = 0;
+ int height = 0;
+ int framerate = 0;
+ std::string url;
+
+ static M3U8Stream get_highest_resolution_stream(const std::vector<M3U8Stream> &streams);
+ };
+
+ std::vector<M3U8Stream> m3u8_get_streams(const std::string &m3u8_data);
+} \ No newline at end of file