![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ExternalMediaAdapterInterface.h>
Public Member Functions | |
AdapterPlaybackState () | |
Default constructor. More... | |
Public Attributes | |
std::string | playerId |
std::string | state |
The players current state. More... | |
std::set< SupportedPlaybackOperation > | supportedOperations |
The set of states the default player can move into from its current state. More... | |
std::chrono::milliseconds | trackOffset |
The offset of the track in milliseconds. More... | |
bool | shuffleEnabled |
Bool to identify if shuffling is enabled or not. More... | |
bool | repeatEnabled |
Bool to identify if looping of songs is enabled or not. More... | |
Favorites | favorites |
The favorite status {"FAVORITED"/"UNFAVORITED"/"NOT_RATED"}. More... | |
std::string | type |
std::string | playbackSource |
The display name for current playback context, e.g. playlist name. More... | |
std::string | playbackSourceId |
std::string | playbackId |
std::string | trackName |
The display name for the currently playing trackname of the track. More... | |
std::string | trackId |
std::string | trackNumber |
std::string | artistName |
The display name for the currently playing artist. More... | |
std::string | artistId |
std::string | albumName |
The display name of the currently playing album. More... | |
std::string | albumId |
std::string | tinyURL |
The URL for tiny cover art image resource} . More... | |
std::string | smallURL |
The URL for small cover art image resource} . More... | |
std::string | mediumURL |
The URL for medium cover art image resource} . More... | |
std::string | largeURL |
The URL for large cover art image resource} . More... | |
std::string | coverId |
std::string | mediaProvider |
MediaType | mediaType |
std::chrono::milliseconds | duration |
Media item duration in milliseconds. More... | |
avsCommon::avs::PlayRequestor | playRequestor |
The PlayRequestor object from the PLAY directive. More... | |
struct that encapsulates an adapter's playback state.
|
inline |
Default constructor.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::albumId |
Arbitrary identifier for currently playing album specific to the music provider, e.g. a URI that can be queried to MSP services for additional info.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::albumName |
The display name of the currently playing album.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::artistId |
An arbitrary identifier for currently playing artist as per the music provider, e.g. a URI that can be queried to MSP services for additional info.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::artistName |
The display name for the currently playing artist.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::coverId |
The Arbitrary identifier for cover art image resource specific to the music provider, for retrieval from an MSP API.
std::chrono::milliseconds alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::duration |
Media item duration in milliseconds.
Favorites alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::favorites |
The favorite status {"FAVORITED"/"UNFAVORITED"/"NOT_RATED"}.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::largeURL |
The URL for large cover art image resource} .
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::mediaProvider |
Music Service Provider name for the currently playing media item; distinct from the application identity although the two may be the same.
MediaType alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::mediaType |
The Media type enum value from {TRACK, PODCAST, STATION, AD, SAMPLE, OTHER} type of the media.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::mediumURL |
The URL for medium cover art image resource} .
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::playbackId |
An unique identifiier for the current playback of the track. If same track exists twice in a context, each instance will have a unique playbackId. It is valid for only one playback of a track and once the track is played or skipped-over, the playback-id is no longer valid. e.g if you skip a track and then come back to it using skip-prev, the playback-id changes. It is for debugging purposes and it is optional.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::playbackSource |
The display name for current playback context, e.g. playlist name.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::playbackSourceId |
An arbitrary identifier for current playback context as per the music provider, e.g. a URI that can be saved as a preset or queried to Music Service Provider services for additional info.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::playerId |
The playerId of an adapter which is the pre-negotiated business id for a partner music provider.
avsCommon::avs::PlayRequestor alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::playRequestor |
The PlayRequestor object from the PLAY
directive.
bool alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::repeatEnabled |
Bool to identify if looping of songs is enabled or not.
bool alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::shuffleEnabled |
Bool to identify if shuffling is enabled or not.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::smallURL |
The URL for small cover art image resource} .
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::state |
The players current state.
std::set<SupportedPlaybackOperation> alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::supportedOperations |
The set of states the default player can move into from its current state.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::tinyURL |
The URL for tiny cover art image resource} .
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::trackId |
The arbitrary identifier for currently playing trackid of the track as per the music provider.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::trackName |
The display name for the currently playing trackname of the track.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::trackNumber |
The display value for the number or abstract position of the currently playing track in the album or context trackNumber of the track.
std::chrono::milliseconds alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::trackOffset |
The offset of the track in milliseconds.
std::string alexaClientSDK::acsdkExternalMediaPlayerInterfaces::AdapterPlaybackState::type |
The type of the media item. For now hard-coded to ExternalMediaPlayerMusicItem.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0