diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/M3U8.hpp | 17 | ||||
-rw-r--r-- | include/VideoPlayer.hpp | 1 |
2 files changed, 18 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 diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp index 0006bfd..016c830 100644 --- a/include/VideoPlayer.hpp +++ b/include/VideoPlayer.hpp @@ -50,6 +50,7 @@ namespace QuickMedia { std::vector<MediaChapter> chapters; std::string plugin_name; bool cache_on_disk = true; + std::string referer; }; // Important: do not call |get_time_in_file| or |add_subtitle| from the |event_callback| callback |