![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Namespaces | |
| test | |
Classes | |
| struct | AdapterPlaybackState |
| struct | AdapterSessionState |
| class | AdapterState |
| struct | DiscoveredPlayerInfo |
| class | ExternalMediaAdapterHandlerInterface |
| class | ExternalMediaAdapterInterface |
| class | ExternalMediaPlayerInterface |
| class | ExternalMediaPlayerObserverInterface |
| struct | ObservablePlaybackStateProperties |
| struct | ObservableSessionProperties |
| struct | PlayerInfo |
| struct | PlayerInfoBase |
Functions | |
| std::string | adapterEventToString (AdapterEvent event) |
| std::ostream & | operator<< (std::ostream &stream, const AdapterEvent &event) |
| rapidjson::Value | buildSupportedOperations (const std::set< acsdkExternalMediaPlayerInterfaces::SupportedPlaybackOperation > &supportedOperations, rapidjson::Document::AllocatorType &allocator) |
| bool | buildMediaState (rapidjson::Value *document, const AdapterPlaybackState &playbackState, rapidjson::Document::AllocatorType &allocator) |
| rapidjson::Value | buildPlaybackState (const acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState &playbackState, rapidjson::Document::AllocatorType &allocator) |
| rapidjson::Value | buildSessionState (const acsdkExternalMediaPlayerInterfaces::AdapterSessionState &sessionState, rapidjson::Document::AllocatorType &allocator) |
| bool | buildDefaultPlayerState (rapidjson::Value *document, rapidjson::Document::AllocatorType &allocator) |
| std::string | getEmpContextString (acsdkExternalMediaPlayerInterfaces::AdapterState adapterState) |
| static const std::string | EMP_CONFIG_KEY ("externalMediaPlayer") |
| The root key for configuration values for the ExternalMediaPlayer. More... | |
| static const std::string | EMP_AGENT_KEY ("agentString") |
| std::string | navigationToString (Navigation navigation) |
| std::ostream & | operator<< (std::ostream &stream, const Navigation &navigation) |
| Navigation | stringToNavigation (const std::string &str) |
| std::string | RequestTypeToString (RequestType requestType) |
| std::string | SupportedPlaybackOperationToString (SupportedPlaybackOperation operation) |
| std::string | ChangeTriggerToString (ChangeCauseType changeType) |
| std::string | RatingToString (Favorites rating) |
| std::string | MediaTypeToString (MediaType mediaType) |
| std::string | SHUFFLE_STATUS_STRING (bool shuffleEnabled) |
| std::string | REPEAT_STATUS_STRING (bool repeatEnabled) |
| std::string | validationMethodToString (ValidationMethod value) |
| Converts the ValidationMethod enum to a string representation. More... | |
| bool | operator== (const ObservableSessionProperties &observableSessionPropertiesA, const ObservableSessionProperties &observableSessionPropertiesB) |
| bool | operator== (const ObservablePlaybackStateProperties &observableA, const ObservablePlaybackStateProperties &observableB) |
Variables | |
| const std::vector< int > | SESSION_RETRY_TABLE |
| avsCommon::utils::RetryTimer | SESSION_RETRY_TIMER |
| The retry timer for session management (token fetch/changeReport send). More... | |
| const avsCommon::avs::NamespaceAndName | CHANGE_REPORT |
| const avsCommon::avs::NamespaceAndName | REQUEST_TOKEN |
| const avsCommon::avs::NamespaceAndName | LOGIN |
| const avsCommon::avs::NamespaceAndName | LOGOUT |
| const avsCommon::avs::NamespaceAndName | PLAYER_EVENT |
| const avsCommon::avs::NamespaceAndName | PLAYER_ERROR_EVENT |
| std::map< AdapterEvent, std::pair< std::string, std::string > > | eventNameSpaceNameMap |
| static const char | PLAYERS [] = "players" |
| The const char for the players key field in the context. More... | |
| static const char | PLAYER_IN_FOCUS [] = "playerInFocus" |
| The const char for the playerInFocus key field in the context. More... | |
| static const char | AGENT_KEY [] = "agent" |
| The const char for agent key. More... | |
| const char | PLAYER_ID [] = "playerId" |
| const char | ENDPOINT_ID [] = "endpointId" |
| const char | LOGGED_IN [] = "loggedIn" |
| const char | USERNAME [] = "username" |
| const char | IS_GUEST [] = "isGuest" |
| const char | LAUNCHED [] = "launched" |
| const char | ACTIVE [] = "active" |
| const char | SPI_VERSION [] = "spiVersion" |
| const char | PLAYER_COOKIE [] = "playerCookie" |
| const char | SKILL_TOKEN [] = "skillToken" |
| const char | PLAYBACK_SESSION_ID [] = "playbackSessionId" |
| const char | STATE [] = "state" |
| const char | OPERATIONS [] = "supportedOperations" |
| const char | MEDIA [] = "media" |
| const char | POSITIONINMS [] = "positionMilliseconds" |
| const char | SHUFFLE [] = "shuffle" |
| const char | REPEAT [] = "repeat" |
| const char | FAVORITE [] = "favorite" |
| const char | PLAYBACK_SOURCE [] = "playbackSource" |
| const char | TYPE [] = "type" |
| const char | PLAYBACK_SOURCE_ID [] = "playbackSourceId" |
| const char | PLAYBACK_ID [] = "playbackId" |
| const char | TRACKNAME [] = "trackName" |
| const char | TRACK_ID [] = "trackId" |
| const char | TRACK_NUMBER [] = "trackNumber" |
| const char | ARTIST [] = "artist" |
| const char | ARTIST_ID [] = "artistId" |
| const char | ALBUM [] = "album" |
| const char | ALBUM_ID [] = "albumId" |
| const char | COVER_URLS [] = "coverUrls" |
| const char | TINY_URL [] = "tiny" |
| const char | SMALL_URL [] = "small" |
| const char | MEDIUM_URL [] = "medium" |
| const char | LARGE_URL [] = "large" |
| const char | COVER_ID [] = "coverId" |
| const char | MEDIA_PROVIDER [] = "mediaProvider" |
| const char | MEDIA_TYPE [] = "mediaType" |
| const char | DURATIONINMS [] = "durationInMilliseconds" |
| const char | VALUE [] = "value" |
Enumeration class for events sent by adapters to AVS.
Enum which identifies how a state change was triggered.
Enum class for the different Request Types that an ExternalMediaAdapter handles.
|
inline |
Convert an AdapterEvent to string
| event | Event to convert |
| bool alexaClientSDK::acsdkExternalMediaPlayerInterfaces::buildDefaultPlayerState | ( | rapidjson::Value * | document, |
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Method to build the default player.
| document | The JSON Value to write the default player state into. |
| allocator | The rapidjson allocator, required for the results of this function to be merge-able with other rapidjson::Value objects. |
true if the build of default player state was successful, false otherwise. | bool alexaClientSDK::acsdkExternalMediaPlayerInterfaces::buildMediaState | ( | rapidjson::Value * | document, |
| const AdapterPlaybackState & | playbackState, | ||
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Method to convert a Media state to JSON.
| document | The JSON Value to write the Media state into. |
| playbackState | The playback state of the adapter. |
| The | rapidjson allocator, required for the results of this function to be merge-able with other rapidjson::Value objects. |
true if the build of Media state was successful, false otherwise. | rapidjson::Value alexaClientSDK::acsdkExternalMediaPlayerInterfaces::buildPlaybackState | ( | const acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState & | playbackState, |
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Method to convert a playbackState to JSON.
| playbackState | The playback state of the adapter. |
| The | rapidjson allocator, required for the results of this function to be merge-able with other rapidjson::Value objects. |
| rapidjson::Value alexaClientSDK::acsdkExternalMediaPlayerInterfaces::buildSessionState | ( | const acsdkExternalMediaPlayerInterfaces::AdapterSessionState & | sessionState, |
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Method to convert session state to JSON.
| sessionState | The session state of the adapter. |
| The | rapidjson allocator, required for the results of this function to be mergable with other rapidjson::Value objects. |
| rapidjson::Value alexaClientSDK::acsdkExternalMediaPlayerInterfaces::buildSupportedOperations | ( | const std::set< acsdkExternalMediaPlayerInterfaces::SupportedPlaybackOperation > & | supportedOperations, |
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Method to iterate over a collection of supported operation in playback state and convert to JSON.
| supportedOperations | The collection of supported operations from the current playback state. |
| allocator | The rapidjson allocator, required for the results of this function to be mergable with other rapidjson::Value objects. |
|
inline |
Convert a ChangeCauseType to an AVS-compliant std::string.
| changeType | The ChangeCauseType to convert. |
changeType.
|
static |
Key for the agent id string unter the EMP_CONFIG_KEY configuration node
|
static |
The root key for configuration values for the ExternalMediaPlayer.
| std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::getEmpContextString | ( | acsdkExternalMediaPlayerInterfaces::AdapterState | adapterState | ) |
Method to get EmpContext string. Specifically for spotify adapter state.
| adapterState | The state of the adapter. |
|
inline |
Convert a Favorites to an AVS-compliant std::string.
| mediaType | The MediaType to convert. |
mediaType.
|
inline |
Convert navigation enum to a string
| navigation | Navigation to convert |
|
inline |
Write a AdapterEvent to an ostream.
| stream | The stream to write the value to. |
| event | The AdapterEvent value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a Navigation to an ostream.
| stream | The stream to write the value to. |
| event | The Navigation value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
|
inline |
|
inline |
Convert a Favorites to an AVS-compliant std::string.
| rating | The ChangeCauseType to convert. |
rating.
|
inline |
|
inline |
Convert a RequestType to an AVS-compliant std::string.
| requestType | The RequestType to convert. |
RequestType
|
inline |
|
inline |
Convert the given string to a Navigation enum
| str | String to convert |
|
inline |
Convert a SupportedPlaybackOperation to an AVS-compliant std::string.
| operation | The SupportedPlaybackOperation to convert. |
operation.
|
inline |
Converts the ValidationMethod enum to a string representation.
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::ACTIVE[] = "active" |
|
static |
The const char for agent key.
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::ALBUM[] = "album" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::ALBUM_ID[] = "albumId" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::ARTIST[] = "artist" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::ARTIST_ID[] = "artistId" |
| const avsCommon::avs::NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayerInterfaces::CHANGE_REPORT |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::COVER_ID[] = "coverId" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::COVER_URLS[] = "coverUrls" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::DURATIONINMS[] = "durationInMilliseconds" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::ENDPOINT_ID[] = "endpointId" |
| std::map<AdapterEvent, std::pair<std::string, std::string> > alexaClientSDK::acsdkExternalMediaPlayerInterfaces::eventNameSpaceNameMap |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::FAVORITE[] = "favorite" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::IS_GUEST[] = "isGuest" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::LARGE_URL[] = "large" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::LAUNCHED[] = "launched" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::LOGGED_IN[] = "loggedIn" |
| const avsCommon::avs::NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayerInterfaces::LOGIN |
| const avsCommon::avs::NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayerInterfaces::LOGOUT |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::MEDIA[] = "media" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::MEDIA_PROVIDER[] = "mediaProvider" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::MEDIA_TYPE[] = "mediaType" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::MEDIUM_URL[] = "medium" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::OPERATIONS[] = "supportedOperations" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYBACK_ID[] = "playbackId" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYBACK_SESSION_ID[] = "playbackSessionId" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYBACK_SOURCE[] = "playbackSource" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYBACK_SOURCE_ID[] = "playbackSourceId" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYER_COOKIE[] = "playerCookie" |
| const avsCommon::avs::NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYER_ERROR_EVENT |
| const avsCommon::avs::NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYER_EVENT |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::PLAYER_ID[] = "playerId" |
|
static |
The const char for the playerInFocus key field in the context.
|
static |
The const char for the players key field in the context.
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::POSITIONINMS[] = "positionMilliseconds" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::REPEAT[] = "repeat" |
| const avsCommon::avs::NamespaceAndName alexaClientSDK::acsdkExternalMediaPlayerInterfaces::REQUEST_TOKEN |
| const std::vector<int> alexaClientSDK::acsdkExternalMediaPlayerInterfaces::SESSION_RETRY_TABLE |
Table with the retry times on subsequent retries for session management (token fetch/changeReport send).
| avsCommon::utils::RetryTimer alexaClientSDK::acsdkExternalMediaPlayerInterfaces::SESSION_RETRY_TIMER |
The retry timer for session management (token fetch/changeReport send).
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::SHUFFLE[] = "shuffle" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::SKILL_TOKEN[] = "skillToken" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::SMALL_URL[] = "small" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::SPI_VERSION[] = "spiVersion" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::STATE[] = "state" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::TINY_URL[] = "tiny" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::TRACK_ID[] = "trackId" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::TRACK_NUMBER[] = "trackNumber" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::TRACKNAME[] = "trackName" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::TYPE[] = "type" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::USERNAME[] = "username" |
| const char alexaClientSDK::acsdkExternalMediaPlayerInterfaces::VALUE[] = "value" |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0