![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ExternalMediaPlayerInterface.h>
Public Member Functions | |||
virtual | ~ExternalMediaPlayerInterface ()=default | ||
virtual void | setPlayerInFocus (const std::string &playerInFocus)=0 | ||
virtual void | updateDiscoveredPlayers (const std::vector< DiscoveredPlayerInfo > &addedPlayers, const std::unordered_set< std::string > &removedLocalPlayerIds)=0 | ||
ExternalMediaAdapterHandlerInterface to the list of handlers being managed by the External | |||
Adds a new Media Player Interface.
| |||
virtual void | addAdapterHandler (std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaAdapterHandlerInterface > adapterHandler)=0 | ||
ExternalMediaAdapterHandlerInterface from the list of handlers being managed by the External | |||
Removes an Media Player Interface
| |||
virtual void | removeAdapterHandler (std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaAdapterHandlerInterface > adapterHandler)=0 | ||
virtual void | addObserver (const std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface > observer)=0 | ||
virtual void | removeObserver (const std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface > observer)=0 | ||
This class provides an interface to the ExternalMediaPlayer
. Currently it provides an interface for adapters to set the player in focus when they acquire focus.
|
virtualdefault |
Destructor
|
pure virtual |
|
pure virtual |
Adds an observer which will be notified on any observable state changes
observer | The observer to add |
|
pure virtual |
Adds an observer which will be notified on any observable state changes
observer | The observer to add |
|
pure virtual |
Removes an observer from the list of active watchers
observer | The observer to remove |
|
pure virtual |
Method to set which player is currently active and which should be the target for playback control by the ExternalMediaPlayer. This is not related to AFML focus.
playerInFocus | The business name of the adapter that has currently acquired focus. |
ExternalMediaAdapterInterface
. Implemented in alexaClientSDK::acsdkExternalMediaPlayer::ExternalMediaPlayer.
|
pure virtual |
Method used by External Media Player adapters to notify that a change has occurred to the discovered players
addedPlayers | The players that have been added |
removedPlayers | The players that have been removed |
Implemented in alexaClientSDK::acsdkExternalMediaPlayer::ExternalMediaPlayer.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0