![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <PlaylistEntry.h>
Public Types | |
enum | Type { Type::MEDIA_INFO, Type::MEDIA_INIT_INFO, Type::AUDIO_CONTENT } |
Public Member Functions | |
PlaylistEntry (std::string _url, std::chrono::milliseconds _duration, avsCommon::utils::playlistParser::PlaylistParseResult _parseResult, Type _type=Type::MEDIA_INFO, ByteRange _byteRange=std::make_tuple(0, 0), EncryptionInfo _encryptionInfo=EncryptionInfo(), std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterface > _contentFetcher=nullptr) | |
bool | hasValidByteRange () const |
Static Public Member Functions | |
static PlaylistEntry | createErrorEntry (const std::string &url) |
static PlaylistEntry | createShutdownEntry (const std::string &url) |
static PlaylistEntry | createMediaInitInfo (std::string url, ByteRange byteRange=std::make_tuple(0, 0)) |
Public Attributes | |
Type | type |
Type of playlist entry. More... | |
std::string | url |
The URL for the entry. More... | |
std::chrono::milliseconds | duration |
The duration of the content if its known; INVALID_DURATION otherwise. More... | |
PlaylistParseResult | parseResult |
The latest parsing result. More... | |
ByteRange | byteRange |
ByteRange to download. More... | |
EncryptionInfo | encryptionInfo |
EncryptionInfo of the media. More... | |
std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterface > | contentFetcher |
Struct to hold information about an entry parsed from playlist.
|
inline |
Constructor.
_url | The URL of the playlist entry media. |
_duration | The duration of media in milliseconds. |
_parseResult | The PlaylistParseResult . |
_type | The Type of the entry. |
_byteRange | The byte range of the url to download. Default is (0, 0). |
_encryptionInfo | The encryption info of the media. Default value is NONE. |
_contentFetcher | Content fetcher related to the entry. |
|
inlinestatic |
Helper method to create ERROR PlaylistEntry
url | playlist URL |
|
inlinestatic |
Helper method to create MEDIA_INIT_INFO PlaylistEntry.
url | playlist URL |
byteRange | The byte range of the MEDIA_INIT_INFO to download. |
|
inlinestatic |
Helper method to create SHUTDOWN PlaylistEntry
url | playlist URL |
|
inline |
Returns true if byterange is valid.
ByteRange alexaClientSDK::avsCommon::utils::playlistParser::PlaylistEntry::byteRange |
ByteRange to download.
std::shared_ptr<avsCommon::sdkInterfaces::HTTPContentFetcherInterface> alexaClientSDK::avsCommon::utils::playlistParser::PlaylistEntry::contentFetcher |
The content fetcher associated with this playlist item. If a content fetcher is set, then it should be considered to be safe to use it. Otherwise, a new content fetcher should be created.
std::chrono::milliseconds alexaClientSDK::avsCommon::utils::playlistParser::PlaylistEntry::duration |
The duration of the content if its known; INVALID_DURATION otherwise.
EncryptionInfo alexaClientSDK::avsCommon::utils::playlistParser::PlaylistEntry::encryptionInfo |
EncryptionInfo of the media.
PlaylistParseResult alexaClientSDK::avsCommon::utils::playlistParser::PlaylistEntry::parseResult |
The latest parsing result.
Type alexaClientSDK::avsCommon::utils::playlistParser::PlaylistEntry::type |
Type of playlist entry.
std::string alexaClientSDK::avsCommon::utils::playlistParser::PlaylistEntry::url |
The URL for the entry.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0