AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
A struct used to encapsulate information retrieved from an M3U playlist. More...
#include <M3UParser.h>
Public Member Functions | |
M3UContent (const std::vector< std::string > &variantURLs) | |
M3UContent (const std::vector< avsCommon::utils::playlistParser::PlaylistEntry > &entries, bool isLive, long mediaSequence=INVALID_MEDIA_SEQUENCE) | |
bool | isMasterPlaylist () const |
bool | hasMediaSequence () const |
bool | empty () const |
Public Attributes | |
const std::vector< std::string > | variantURLs |
If this is a master playlist, variantURLs has list of media playlists. More... | |
const std::vector< avsCommon::utils::playlistParser::PlaylistEntry > | entries |
If this is a media playlist, entries has list of parsed entries. More... | |
const bool | isLive |
If EXT-X-ENDLIST tag exists, isLive is set to false. More... | |
const long | mediaSequence |
A struct used to encapsulate information retrieved from an M3U playlist.
alexaClientSDK::playlistParser::M3UContent::M3UContent | ( | const std::vector< std::string > & | variantURLs | ) |
Constructor for parsed content of master playlist.
variantURLs | The variant URLs pointing to media playlists. |
alexaClientSDK::playlistParser::M3UContent::M3UContent | ( | const std::vector< avsCommon::utils::playlistParser::PlaylistEntry > & | entries, |
bool | isLive, | ||
long | mediaSequence = INVALID_MEDIA_SEQUENCE |
||
) |
Constructor for parsed content of media playlist.
entries | List of PlaylistEntry from parsed content. |
isLive | true for live HLS playlists. |
mediaSequence | The value of the EXT-X-MEDIA-SEQUENCE tag |
bool alexaClientSDK::playlistParser::M3UContent::empty | ( | ) | const |
Helper method to check if no URLs are parsed.
bool alexaClientSDK::playlistParser::M3UContent::hasMediaSequence | ( | ) | const |
Helper method to tell if the media sequence field is present in the M3U8 document.
true
if this represents a playlist that has the media sequence field. bool alexaClientSDK::playlistParser::M3UContent::isMasterPlaylist | ( | ) | const |
Helper method to check if content is a master playlist.
true
if this represents a master playlist const std::vector<avsCommon::utils::playlistParser::PlaylistEntry> alexaClientSDK::playlistParser::M3UContent::entries |
If this is a media playlist, entries has list of parsed entries.
const bool alexaClientSDK::playlistParser::M3UContent::isLive |
If EXT-X-ENDLIST tag exists, isLive is set to false.
const long alexaClientSDK::playlistParser::M3UContent::mediaSequence |
The value of the EXT-X-MEDIA-SEQUENCE tag. The client code is responsible for calling the hasMediaSequence()
method to check if the content of this field should be read.
const std::vector<std::string> alexaClientSDK::playlistParser::M3UContent::variantURLs |
If this is a master playlist, variantURLs has list of media playlists.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0