![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AudioPlayerObserverInterface.h>
Classes | |
struct | Context |
The context of the AudioPlayer when the observer is notified of the PlayerActivity state change. More... | |
Public Types | |
enum | SeekStatus { SeekStatus::SEEK_START, SeekStatus::SEEK_COMPLETE } |
Enum representing Seek activities. More... | |
Public Member Functions | |
virtual | ~AudioPlayerObserverInterface ()=default |
virtual void | onPlayerActivityChanged (avsCommon::avs::PlayerActivity state, const Context &context)=0 |
virtual void | onSeekActivity (const SeekStatus seekStatus, const Context &context) |
This class allows any observers of the AudioPlayer
to be notified of changes in the AudioPlayer
audio state.
|
virtualdefault |
Destructor
|
pure virtual |
Used to notify the observer when the AudioPlayer
has a change in PlayerActivity
.
state | The PlayerActivity of the AudioPlayer . |
context | The Context of the AudioPlayer . |
Implemented in alexaClientSDK::acsdkAudioPlayer::test::TestAudioPlayerObserver, alexaClientSDK::sampleApplications::ipcServerSampleApp::gui::GUIManager, alexaClientSDK::sampleApplications::ipcServerSampleApp::AplClientBridge, alexaClientSDK::sampleApplications::common::TemplateRuntimePresentationAdapter, and alexaClientSDK::diagnostics::DevicePropertyAggregator.
|
inlinevirtual |
Used to notify the observer when the AudioPlayer
is seeking within the current track.
seekStatus | Type of activity being performed, represented by SeekStatus |
context | The Context of the AudioPlayer at the time of the seek activity. |
Reimplemented in alexaClientSDK::acsdkAudioPlayer::test::TestAudioPlayerObserver.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0