AlexaClientSDK
1.20.1
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Enumerations | |
enum | AdapterEvent { AdapterEvent::CHANGE_REPORT, AdapterEvent::REQUEST_TOKEN, AdapterEvent::LOGIN, AdapterEvent::LOGOUT, AdapterEvent::PLAYER_EVENT, AdapterEvent::PLAYER_ERROR_EVENT } |
Enumeration class for events sent by adapters to AVS. More... | |
Functions | |
rapidjson::Value | buildSupportedOperations (const std::set< avsCommon::sdkInterfaces::externalMediaPlayer::SupportedPlaybackOperation > &supportedOperations, rapidjson::Document::AllocatorType &allocator) |
rapidjson::Value | buildPlaybackState (const avsCommon::sdkInterfaces::externalMediaPlayer::AdapterPlaybackState &playbackState, rapidjson::Document::AllocatorType &allocator) |
rapidjson::Value | buildSessionState (const avsCommon::sdkInterfaces::externalMediaPlayer::AdapterSessionState &sessionState, rapidjson::Document::AllocatorType &allocator) |
bool | buildDefaultPlayerState (rapidjson::Value *document, rapidjson::Document::AllocatorType &allocator) |
avsCommon::utils::RetryTimer | SESSION_RETRY_TIMER (SESSION_RETRY_TABLE) |
const NamespaceAndName | CHANGE_REPORT ("Alexa", "ChangeReport") |
const NamespaceAndName | REQUEST_TOKEN ("ExternalMediaPlayer", "RequestToken") |
const NamespaceAndName | LOGIN ("ExternalMediaPlayer", "Login") |
const NamespaceAndName | LOGOUT ("ExternalMediaPlayer", "Logout") |
const NamespaceAndName | PLAYER_EVENT ("ExternalMediaPlayer", "PlayerEvent") |
const NamespaceAndName | PLAYER_ERROR_EVENT ("ExternalMediaPlayer", "PlayerError") |
rapidjson::Value | buildSupportedOperations (const std::set< SupportedPlaybackOperation > &supportedOperations, rapidjson::Document::AllocatorType &allocator) |
Variables | |
const std::vector< int > | SESSION_RETRY_TABLE |
Table with the retry times on subsequent retries for session management (token fetch/changeReport send). More... | |
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 |
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 | 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" |
const char | DEFAULT_STATE [] = "IDLE" |
The default state of a player. More... | |
Enumeration class for events sent by adapters to AVS.
bool alexaClientSDK::avsCommon::avs::externalMediaPlayer::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. rapidjson::Value alexaClientSDK::avsCommon::avs::externalMediaPlayer::buildPlaybackState | ( | const avsCommon::sdkInterfaces::externalMediaPlayer::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::avsCommon::avs::externalMediaPlayer::buildSessionState | ( | const avsCommon::sdkInterfaces::externalMediaPlayer::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::avsCommon::avs::externalMediaPlayer::buildSupportedOperations | ( | const std::set< SupportedPlaybackOperation > & | supportedOperations, |
rapidjson::Document::AllocatorType & | allocator | ||
) |
rapidjson::Value alexaClientSDK::avsCommon::avs::externalMediaPlayer::buildSupportedOperations | ( | const std::set< avsCommon::sdkInterfaces::externalMediaPlayer::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. |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::CHANGE_REPORT | ( | "Alexa" | , |
"ChangeReport" | |||
) |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::LOGIN | ( | "ExternalMediaPlayer" | , |
"Login" | |||
) |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::LOGOUT | ( | "ExternalMediaPlayer" | , |
"Logout" | |||
) |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYER_ERROR_EVENT | ( | "ExternalMediaPlayer" | , |
"PlayerError" | |||
) |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYER_EVENT | ( | "ExternalMediaPlayer" | , |
"PlayerEvent" | |||
) |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::REQUEST_TOKEN | ( | "ExternalMediaPlayer" | , |
"RequestToken" | |||
) |
avsCommon::utils::RetryTimer alexaClientSDK::avsCommon::avs::externalMediaPlayer::SESSION_RETRY_TIMER | ( | SESSION_RETRY_TABLE | ) |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::ACTIVE[] = "active" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::ALBUM[] = "album" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::ALBUM_ID[] = "albumId" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::ARTIST[] = "artist" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::ARTIST_ID[] = "artistId" |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::CHANGE_REPORT("Alexa", "ChangeReport") |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::COVER_ID[] = "coverId" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::COVER_URLS[] = "coverUrls" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::DEFAULT_STATE[] = "IDLE" |
The default state of a player.
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::DURATIONINMS[] = "durationInMilliseconds" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::ENDPOINT_ID[] = "endpointId" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::FAVORITE[] = "favorite" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::IS_GUEST[] = "isGuest" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::LARGE_URL[] = "large" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::LAUNCHED[] = "launched" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::LOGGED_IN[] = "loggedIn" |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::LOGIN("ExternalMediaPlayer", "Login") |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::LOGOUT("ExternalMediaPlayer", "Logout") |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::MEDIA[] = "media" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::MEDIA_PROVIDER[] = "mediaProvider" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::MEDIA_TYPE[] = "mediaType" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::MEDIUM_URL[] = "medium" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::OPERATIONS[] = "supportedOperations" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYBACK_SESSION_ID[] = "playbackSessionId" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYBACK_SOURCE[] = "playbackSource" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYBACK_SOURCE_ID[] = "playbackSourceId" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYER_COOKIE[] = "playerCookie" |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYER_ERROR_EVENT("ExternalMediaPlayer", "PlayerError") |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYER_EVENT("ExternalMediaPlayer", "PlayerEvent") |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::PLAYER_ID[] = "playerId" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::POSITIONINMS[] = "positionMilliseconds" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::REPEAT[] = "repeat" |
const NamespaceAndName alexaClientSDK::avsCommon::avs::externalMediaPlayer::REQUEST_TOKEN("ExternalMediaPlayer", "RequestToken") |
const std::vector< int > alexaClientSDK::avsCommon::avs::externalMediaPlayer::SESSION_RETRY_TABLE |
Table with the retry times on subsequent retries for session management (token fetch/changeReport send).
avsCommon::utils::RetryTimer alexaClientSDK::avsCommon::avs::externalMediaPlayer::SESSION_RETRY_TIMER(SESSION_RETRY_TABLE) |
The retry timer for session management (token fetch/changeReport send).
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::SHUFFLE[] = "shuffle" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::SKILL_TOKEN[] = "skillToken" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::SMALL_URL[] = "small" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::SPI_VERSION[] = "spiVersion" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::STATE[] = "state" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::TINY_URL[] = "tiny" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::TRACK_ID[] = "trackId" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::TRACK_NUMBER[] = "trackNumber" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::TRACKNAME[] = "trackName" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::TYPE[] = "type" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::USERNAME[] = "username" |
const char alexaClientSDK::avsCommon::avs::externalMediaPlayer::VALUE[] = "value" |
AlexaClientSDK 1.20.1 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0