AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Namespaces | |
test | |
Classes | |
struct | AudioItem |
Struct which contains all the fields which define an audio item for a Play directive. More... | |
class | AudioPlayer |
class | ProgressTimer |
class | Util |
Enumerations | |
enum | AudioPlayerState { AudioPlayerState::IDLE, AudioPlayerState::BUFFERING, AudioPlayerState::BUFFER_UNDERRUN, AudioPlayerState::PLAYING, AudioPlayerState::STOPPED, AudioPlayerState::PAUSED, AudioPlayerState::FINISHED } |
enum | ClearBehavior { ClearBehavior::CLEAR_ENQUEUED, ClearBehavior::CLEAR_ALL } |
Used to determine clear queue behavior. More... | |
enum | StreamFormat { StreamFormat::AUDIO_MPEG, StreamFormat::UNKNOWN } |
Specifies the format of a binary audio attachment in a Play directive. More... | |
Splitting AudioPlayer internal state from the external facing PlayerActivity the change here is trivial, but the sematics of BUFFERING vs BUFFER_UNDERRUN are slightly different so, this was a recommended path from the sdk team
|
strong |
|
strong |
|
inline |
Convert a ClearBehavior
to an AVS-compliant std::string
.
clearBehavior | The ClearBehavior to convert. |
clearBehavior
.
|
inline |
Convert a StreamFormat
to a rapidjson::Value
.
documentNode | The rapidjson::Value to write to. |
streamFormat | The StreamFormat to convert. |
true
if conversion is successful, else false
.
|
inline |
Convert a ClearBehavior
to a rapidjson::Value
.
documentNode | The rapidjson::Value to write to. |
clearBehavior | The ClearBehavior to convert. |
true
if conversion is successful, else false
. Creates an manufactory component that exports AudioPlayer-related
implementations.
Creates an manufactory component that exports AudioPlayer-related
implementations.
configParentKey | Optional key to the parent node of AudioPlayer-related configurations in the ConfigurationNode. This is needed to maintain backwards compatibility with AlexaClientSDKConfig.json, which previously placed AudioPlayer configurations under the sampleApp parent node. |
|
inline |
Write a StreamFormat
value to an ostream
.
stream | The stream to write the value to. |
streamFormat | The StreamFormat value to write to the ostream as a string. |
ostream
that was passed in and written to.
|
inline |
Write a ClearBehavior
value to an ostream
.
stream | The stream to write the value to. |
clearBehavior | The ClearBehavior value to write to the ostream as a string. |
ostream
that was passed in and written to.
|
inline |
|
inline |
Convert a StreamFormat
to an AVS-compliant std::string
.
streamFormat | The StreamFormat to convert. |
streamFormat
.
|
inline |
Convert an AVS-compliant string
to a ClearBehavior
.
text | The string to convert. | |
[out] | clearBehavior | The converted ClearBehavior . |
true
if the string converted succesfully, else false
.
|
inline |
Convert an AVS-compliant string
to a StreamFormat
.
text | The string to convert. | |
[out] | streamFormat | The converted StreamFormat . |
true
if the string converted succesfully, else false
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0