AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Namespaces | |
test | |
Classes | |
struct | Fingerprint |
struct | MediaDescription |
class | MediaPlayerFactoryInterface |
class | MediaPlayerFactoryObserverInterface |
class | MediaPlayerInterface |
class | MediaPlayerObserverInterface |
struct | MediaPlayerState |
struct | PlaybackAttributes |
struct | PlaybackContext |
struct | PlaybackReport |
class | PooledMediaResourceProvider |
class | PooledMediaResourceProviderInterface |
struct | SourceConfig |
Typedefs | |
typedef std::map< std::string, std::string > | HeaderConfig |
Header Key, Value pairs. More... | |
Functions | |
std::string | errorTypeToString (ErrorType errorType) |
std::ostream & | operator<< (std::ostream &stream, const ErrorType &errorType) |
MediaDescription | emptyMediaDescription () |
std::ostream & | operator<< (std::ostream &stream, const MediaDescription &mediaDescription) |
std::ostream & | operator<< (std::ostream &stream, const MediaPlayerState &state) |
std::ostream & | operator<< (std::ostream &stream, const MediaPlayerState::MediaPlayerProtection &mediaPlayerProtection) |
bool | validateIfNotMalicious (const std::string &header) |
std::pair< bool, bool > | validatePlaybackContextHeaders (PlaybackContext *playbackContext) |
SourceConfig | emptySourceConfig () |
std::ostream & | operator<< (std::ostream &stream, const SourceConfig &config) |
Variables | |
static std::string | PLAY_BEHAVIOR = "playBehavior" |
Play behavior key to be included in the additional data. More... | |
static const std::chrono::milliseconds | MEDIA_PLAYER_INVALID_OFFSET {-1} |
Represents offset returned when MediaPlayer is in an invalid state. More... | |
const std::chrono::milliseconds | DURATION_UNKNOWN = std::chrono::milliseconds(-1) |
static constexpr short | MAX_GAIN = 100 |
Maximum gain supported. More... | |
static constexpr short | MIN_GAIN = 0 |
Minimum gain supported. More... | |
typedef std::map<std::string, std::string> alexaClientSDK::avsCommon::utils::mediaPlayer::HeaderConfig |
Header Key, Value pairs.
Identifies the specific type of error in a PlaybackFailed
event.
|
inline |
Builds an empty Media Description object.
|
inline |
Builds a Source Config object with fade in disabled.
|
inline |
Convert an ErrorType
to an AVS-compliant std::string
.
errorType | The ErrorType to convert. |
errorType
.
|
inline |
Write a MediaDescription
value to the given stream.
stream | The stream to write the value to. |
mediaDescription | The value to write to the stream as a string. |
|
inline |
Write a SourceConfig
value to the given stream.
stream | The stream to write the value to. |
config | The value to write to the stream as a string. |
|
inline |
Write a MediaPlayerProtection
value to an ostream
.
stream | The stream to write the value to. |
mediaPlayerProtection | The MediaPlayerProtection value to write to the ostream as a string. |
ostream
that was passed in and written to.
|
inline |
Write an ErrorType
value to an ostream
.
stream | The stream to write the value to. |
errorType | The ErrorType value to write to the ostream as a string. |
ostream
that was passed in and written to.
|
inline |
Write a MediaPlayerState
to an ostream
as a string.
stream | The stream to write the value to. |
state | The state value to write to teh ostream as a string |
ostream
that was passed in and written to. bool alexaClientSDK::avsCommon::utils::mediaPlayer::validateIfNotMalicious | ( | const std::string & | header | ) |
Check for malicious characters(,
, null) in the header string.
header | to be validated. |
true
if not malicious, else false
. std::pair<bool, bool> alexaClientSDK::avsCommon::utils::mediaPlayer::validatePlaybackContextHeaders | ( | PlaybackContext * | playbackContext | ) |
Validate the headers. Delete the invalid entries
[out] | playbackContext | to be validated and the invalid entries will be deleted. |
const std::chrono::milliseconds alexaClientSDK::avsCommon::utils::mediaPlayer::DURATION_UNKNOWN = std::chrono::milliseconds(-1) |
|
static |
Maximum gain supported.
|
static |
Represents offset returned when MediaPlayer is in an invalid state.
|
static |
Minimum gain supported.
|
static |
Play behavior key to be included in the additional data.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0