M3U8.hpp 380 B

1234567891011121314151617
  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. namespace QuickMedia {
  5. struct M3U8Stream {
  6. int width = 0;
  7. int height = 0;
  8. int framerate = 0;
  9. std::string url;
  10. static M3U8Stream get_highest_resolution_stream(const std::vector<M3U8Stream> &streams);
  11. };
  12. std::vector<M3U8Stream> m3u8_get_streams(const std::string &m3u8_data);
  13. }