16 #ifndef ALEXA_CLIENT_SDK_PLAYLISTPARSER_INCLUDE_PLAYLISTPARSER_M3UPARSER_H_ 17 #define ALEXA_CLIENT_SDK_PLAYLISTPARSER_INCLUDE_PLAYLISTPARSER_M3UPARSER_H_ 26 namespace playlistParser {
73 M3UContent(
const std::vector<std::string>& variantURLs);
83 const std::vector<avsCommon::utils::playlistParser::PlaylistEntry>& entries,
85 long mediaSequence = INVALID_MEDIA_SEQUENCE);
92 bool isMasterPlaylist()
const;
99 bool hasMediaSequence()
const;
110 const std::vector<avsCommon::utils::playlistParser::PlaylistEntry>
entries;
180 #endif // ALEXA_CLIENT_SDK_PLAYLISTPARSER_INCLUDE_PLAYLISTPARSER_M3UPARSER_H_ PlayItem(std::string playlistURL)
Definition: PlaylistEntry.h:111
const std::vector< std::string > variantURLs
If this is a master playlist, variantURLs has list of media playlists.
Definition: M3UParser.h:107
::std::string string
Definition: gtest-port.h:1097
M3UContent parseM3UContent(const std::string &playlistURL, const std::string &content)
std::tuple< long, long > ByteRange
Alias for holding start and end offsets of byte range of an URL to download.
Definition: PlaylistEntry.h:33
enum alexaClientSDK::playlistParser::PlayItem::Type type
Definition: M3UParser.h:35
const bool isLive
If EXT-X-ENDLIST tag exists, isLive is set to false.
Definition: M3UParser.h:113
static constexpr long INVALID_MEDIA_SEQUENCE
An invalid media sequence number.
Definition: M3UParser.h:29
const long mediaSequence
Definition: M3UParser.h:119
avsCommon::utils::playlistParser::PlaylistEntry parseHLSMapLine(const std::string &line, const std::string &baseURL)
A struct used to encapsulate information retrieved from an M3U playlist.
Definition: M3UParser.h:67
static PlaylistEntry createErrorEntry(const std::string &url)
Definition: PlaylistEntry.h:199
bool isPlaylistExtendedM3U(const std::string &playlistContent)
avsCommon::utils::playlistParser::EncryptionInfo parseHLSEncryptionLine(const std::string &line, const std::string &baseURL)
const std::string playlistURL
If type == PLAYLIST_URL, url to parse next playlist.
Definition: M3UParser.h:59
const avsCommon::utils::playlistParser::PlaylistEntry playlistEntry
If type == MEDIA_INFO, holds information about next PlaylistEntry.
Definition: M3UParser.h:62
Definition: PlaylistEntry.h:59
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Type
Definition: M3UParser.h:56
long parsePlaylistMediaSequence(const std::string &line)
const std::vector< avsCommon::utils::playlistParser::PlaylistEntry > entries
If this is a media playlist, entries has list of parsed entries.
Definition: M3UParser.h:110
avsCommon::utils::playlistParser::ByteRange parseHLSByteRangeLine(const std::string &line)