MythTV  master
m3u.h
Go to the documentation of this file.
1 #ifndef MYTHTV_M3U_H
2 #define MYTHTV_M3U_H
3 
4 #include <cinttypes>
5 
6 #include <QDateTime>
7 #include <QString>
8 
9 namespace M3U
10 {
11  QString DecodedURI(const QString& uri);
12  QString RelativeURI(const QString& surl, const QString& spath);
13  QString ParseAttributes(const QString& line, const char* attr);
14  bool ParseDecimalValue(const QString& line, int& target);
15  bool ParseDecimalValue(const QString& line, int64_t& target);
16  bool ParseVersion(const QString& line, const QString& loc, int& version);
17  bool ParseStreamInformation(const QString& line,
18  const QString& url,
19  const QString& loc,
20  int& id,
21  uint64_t& bandwidth,
22  QString& audio,
23  QString& video);
24  bool ParseMedia(const QString& line,
25  const QString& loc,
26  QString& media_type,
27  QString& group_id,
28  QString& uri,
29  QString& name);
30  bool ParseTargetDuration(const QString& line, const QString& loc,
31  int& duration);
32  bool ParseSegmentInformation(int version, const QString& line,
33  int& duration, QString& title,
34  const QString& loc);
35  bool ParseMediaSequence(int64_t & sequence_num, const QString& line,
36  const QString& loc);
37  bool ParseKey(int version, const QString& line, bool& aesmsg,
38  const QString& loc, QString &path, QString &iv);
39  bool ParseMap(const QString &line,
40  const QString &loc,
41  QString &uri);
42  bool ParseProgramDateTime(const QString& line, const QString& loc,
43  QDateTime &dt);
44  bool ParseAllowCache(const QString& line, const QString& loc,
45  bool& do_cache);
46  bool ParseDiscontinuitySequence(const QString& line, const QString& loc,
47  int &discontinuity_sequence);
48  bool ParseDiscontinuity(const QString& line, const QString& loc);
49  bool ParseEndList(const QString& loc, bool& is_vod);
50  bool ParseIndependentSegments(const QString& line, const QString& loc);
51 }
52 
53 #endif // MYTHTV_M3U_H
M3U::ParseStreamInformation
bool ParseStreamInformation(const QString &line, const QString &url, const QString &loc, int &id, uint64_t &bandwidth, QString &audio, QString &video)
Definition: m3u.cpp:125
M3U::RelativeURI
QString RelativeURI(const QString &surl, const QString &spath)
Definition: m3u.cpp:20
M3U::ParseDecimalValue
bool ParseDecimalValue(const QString &line, int &target)
Return the decimal argument in a line of type: blah:<decimal> presence of value <decimal> is compulso...
Definition: m3u.cpp:56
M3U
Definition: m3u.cpp:9
M3U::ParseKey
bool ParseKey(int version, const QString &line, [[maybe_unused]] bool &aesmsg, const QString &loc, QString &path, QString &iv)
Definition: m3u.cpp:348
M3U::ParseMediaSequence
bool ParseMediaSequence(int64_t &sequence_num, const QString &line, const QString &loc)
Definition: m3u.cpp:327
M3U::ParseAllowCache
bool ParseAllowCache(const QString &line, const QString &loc, bool &do_cache)
Definition: m3u.cpp:490
M3U::DecodedURI
QString DecodedURI(const QString &uri)
Definition: m3u.cpp:13
M3U::ParseDiscontinuity
bool ParseDiscontinuity(const QString &line, const QString &loc)
Definition: m3u.cpp:547
M3U::ParseMedia
bool ParseMedia(const QString &line, const QString &loc, QString &media_type, QString &group_id, QString &uri, QString &name)
Definition: m3u.cpp:209
M3U::ParseMap
bool ParseMap(const QString &line, const QString &loc, QString &uri)
Definition: m3u.cpp:439
M3U::ParseAttributes
QString ParseAttributes(const QString &line, const char *attr)
Definition: m3u.cpp:31
M3U::ParseDiscontinuitySequence
bool ParseDiscontinuitySequence(const QString &line, const QString &loc, int &discontinuity_sequence)
Definition: m3u.cpp:523
M3U::ParseSegmentInformation
bool ParseSegmentInformation(int version, const QString &line, int &duration, QString &title, const QString &loc)
Definition: m3u.cpp:249
M3U::ParseVersion
bool ParseVersion(const QString &line, const QString &loc, int &version)
Definition: m3u.cpp:90
M3U::ParseProgramDateTime
bool ParseProgramDateTime(const QString &line, const QString &loc, QDateTime &dt)
Definition: m3u.cpp:470
M3U::ParseEndList
bool ParseEndList(const QString &loc, bool &is_vod)
Definition: m3u.cpp:555
M3U::ParseTargetDuration
bool ParseTargetDuration(const QString &line, const QString &loc, int &duration)
Definition: m3u.cpp:232
nv_python_libs.bbciplayer.bbciplayer_api.version
string version
Definition: bbciplayer_api.py:77
M3U::ParseIndependentSegments
bool ParseIndependentSegments(const QString &line, const QString &loc)
Definition: m3u.cpp:567