aboutsummaryrefslogtreecommitdiff
path: root/include/M3U8.hpp
blob: cefec164d7c464a4b0f6949fb07e62010ff911cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}