|
virtual | ~AudioPlayer () |
|
|
void | provideState (const avsCommon::avs::NamespaceAndName &stateProviderName, unsigned int stateRequestToken) override |
|
|
void | handleDirectiveImmediately (std::shared_ptr< avsCommon::avs::AVSDirective > directive) override |
|
void | preHandleDirective (std::shared_ptr< DirectiveInfo > info) override |
|
void | handleDirective (std::shared_ptr< DirectiveInfo > info) override |
|
void | cancelDirective (std::shared_ptr< DirectiveInfo > info) override |
|
void | onDeregistered () override |
|
avsCommon::avs::DirectiveHandlerConfiguration | getConfiguration () const override |
|
|
void | onFocusChanged (avsCommon::avs::FocusState newFocus, avsCommon::avs::MixingBehavior behavior) override |
|
|
void | onFirstByteRead (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackStarted (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackStopped (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackFinished (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackError (SourceId id, const avsCommon::utils::mediaPlayer::ErrorType &type, std::string error, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackPaused (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onPlaybackResumed (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onBufferUnderrun (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onBufferRefilled (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onBufferingComplete (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
void | onSeeked (SourceId id, const avsCommon::utils::mediaPlayer::MediaPlayerState &startState, const avsCommon::utils::mediaPlayer::MediaPlayerState &endState) override |
|
void | onTags (SourceId id, std::unique_ptr< const VectorOfTags > vectorOfTags, const avsCommon::utils::mediaPlayer::MediaPlayerState &state) override |
|
|
void | onReadyToProvideNextPlayer () override |
|
|
void | onProgressReportDelayElapsed () override |
|
void | onProgressReportIntervalElapsed () override |
|
void | onProgressReportIntervalUpdated () override |
|
void | requestProgress () override |
|
|
void | addObserver (std::shared_ptr< acsdkAudioPlayerInterfaces::AudioPlayerObserverInterface > observer) override |
|
void | removeObserver (std::shared_ptr< acsdkAudioPlayerInterfaces::AudioPlayerObserverInterface > observer) override |
|
void | stopPlayback () override |
|
|
void | setObserver (std::shared_ptr< avsCommon::sdkInterfaces::RenderPlayerInfoCardsObserverInterface > observer) override |
|
|
bool | localOperation (PlaybackOperation op) override |
|
bool | localSeekTo (std::chrono::milliseconds location, bool fromStart) override |
|
|
std::chrono::milliseconds | getAudioItemOffset () override |
|
std::chrono::milliseconds | getAudioItemDuration () override |
|
|
std::unordered_set< std::shared_ptr< avsCommon::avs::CapabilityConfiguration > > | getCapabilityConfigurations () override |
|
|
void | doShutdown () override |
|
virtual | ~CapabilityAgent ()=default |
|
void | preHandleDirective (std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result) override final |
|
bool | handleDirective (const std::string &messageId) override final |
|
void | cancelDirective (const std::string &messageId) override final |
|
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface |
virtual | ~DirectiveHandlerInterface ()=default |
|
virtual void | preHandleDirective (std::shared_ptr< avsCommon::avs::AVSDirective > directive, std::unique_ptr< DirectiveHandlerResultInterface > result)=0 |
|
virtual | ~ChannelObserverInterface ()=default |
|
virtual | ~StateProviderInterface ()=default |
|
virtual void | provideState (const avs::CapabilityTag &stateProviderName, const ContextRequestToken stateRequestToken) |
|
virtual bool | canStateBeRetrieved () |
|
virtual bool | hasReportableStateProperties () |
|
virtual bool | shouldQueryState () |
|
virtual | ~ContextRequesterInterface ()=default |
|
virtual void | onContextAvailable (const std::string &jsonContext) |
|
virtual void | onContextAvailable (const endpoints::EndpointIdentifier &endpointId, const avs::AVSContext &endpointContext, ContextRequestToken requestToken) |
|
virtual void | onContextFailure (const ContextRequestError error) |
|
virtual void | onContextFailure (const ContextRequestError error, ContextRequestToken token) |
|
virtual | ~ContextInterface ()=default |
|
virtual | ~AudioPlayerInterface ()=default |
|
virtual void | addObserver (std::shared_ptr< acsdkAudioPlayerInterfaces::AudioPlayerObserverInterface > observer)=0 |
|
virtual void | removeObserver (std::shared_ptr< acsdkAudioPlayerInterfaces::AudioPlayerObserverInterface > observer)=0 |
|
virtual | ~MediaPropertiesInterface ()=default |
|
virtual | ~RenderPlayerInfoCardsProviderInterface ()=default |
|
virtual void | setObserver (std::shared_ptr< avsCommon::sdkInterfaces::RenderPlayerInfoCardsObserverInterface > observer)=0 |
|
virtual | ~CapabilityConfigurationInterface ()=default |
|
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface |
virtual | ~LocalPlaybackHandlerInterface ()=default |
|
virtual | ~MediaPlayerObserverInterface ()=default |
|
virtual void | onFirstByteRead (SourceId id, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackStarted (SourceId id, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackFinished (SourceId id, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackError (SourceId id, const ErrorType &type, std::string error, const MediaPlayerState &state)=0 |
|
virtual void | onPlaybackPaused (SourceId, const MediaPlayerState &) |
|
virtual void | onPlaybackResumed (SourceId, const MediaPlayerState &) |
|
virtual void | onPlaybackStopped (SourceId, const MediaPlayerState &) |
|
virtual void | onBufferUnderrun (SourceId, const MediaPlayerState &) |
|
virtual void | onBufferRefilled (SourceId, const MediaPlayerState &) |
|
virtual void | onBufferingComplete (SourceId, const MediaPlayerState &) |
|
virtual void | onSeeked (SourceId, const MediaPlayerState &, const MediaPlayerState &) |
|
virtual void | onTags (SourceId, std::unique_ptr< const VectorOfTags >, const MediaPlayerState &) |
|
virtual | ~MediaPlayerFactoryObserverInterface ()=default |
|
| RequiresShutdown (const std::string &name) |
|
virtual | ~RequiresShutdown () |
| Destructor. More...
|
|
const std::string & | name () const |
|
void | shutdown () |
|
bool | isShutdown () const |
|
|
Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface |
enum | PlaybackOperation { STOP_PLAYBACK,
RESUMABLE_STOP,
RESUME_PLAYBACK,
TRANSIENT_PAUSE
} |
|
enum | TagType {
TagType::STRING,
TagType::UINT,
TagType::INT,
TagType::DOUBLE,
TagType::BOOLEAN
} |
| The different types of metadata "stream tags". More...
|
|
using | SourceId = MediaPlayerInterface::SourceId |
| A type that identifies which source is currently being operated on. More...
|
|
typedef std::vector< TagKeyValueType > | VectorOfTags |
|
| CapabilityAgent (const std::string &nameSpace, std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender) |
|
virtual std::shared_ptr< DirectiveInfo > | createDirectiveInfo (std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result) |
|
void | removeDirective (const std::string &messageId) |
|
void | sendExceptionEncounteredAndReportFailed (std::shared_ptr< DirectiveInfo > info, const std::string &message, avsCommon::avs::ExceptionErrorType type=avsCommon::avs::ExceptionErrorType::INTERNAL_ERROR) |
|
const std::pair< std::string, std::string > | buildJsonEventString (const std::string &eventName, const std::string &dialogRequestIdString="", const std::string &payload="{}", const std::string &context="") const |
|
const std::string | m_namespace |
| The namespace of the capability agent. More...
|
|
std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > | m_exceptionEncounteredSender |
| Object to use to send exceptionEncountered messages. More...
|
|
This class implements the AudioPlayer
capability agent.
- See also
- https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/audioplayer
- Note
- For instances of this class to be cleaned up correctly,
shutdown()
must be called.