From 87c8a2986d468a3fc897169c1b00fc4695e09d39 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Sep 2022 05:01:36 +0200 Subject: Add dramacool --- include/M3U8.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/M3U8.hpp (limited to 'include/M3U8.hpp') 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 +#include + +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 &streams); + }; + + std::vector m3u8_get_streams(const std::string &m3u8_data); +} \ No newline at end of file -- cgit v1.2.3