![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <PooledMediaResourceProvider.h>
Static Public Member Functions | |
static std::shared_ptr< avsCommon::utils::mediaPlayer::PooledMediaResourceProviderInterface > | adaptMediaPlayerFactoryInterface (std::unique_ptr< avsCommon::utils::mediaPlayer::MediaPlayerFactoryInterface > mediaPlayerFactory, std::vector< std::shared_ptr< avsCommon::sdkInterfaces::ChannelVolumeInterface >> speakers) |
static std::shared_ptr< avsCommon::utils::mediaPlayer::PooledMediaResourceProviderInterface > | createPooledMediaResourceProviderInterface (std::vector< std::shared_ptr< avsCommon::utils::mediaPlayer::MediaPlayerInterface >> mediaPlayers, std::vector< std::shared_ptr< avsCommon::sdkInterfaces::ChannelVolumeInterface >> speakers, const avsCommon::utils::mediaPlayer::Fingerprint &fingerprint={}) |
Adapts the legacy MediaPlayerFactoryInterface
(which provides only media players) to the PooledMediaResourceProviderInterface
(which can also provide other associated media resources with the media players).
|
override |
|
overridevirtual |
Acquire an instance of a MediaPlayerInterface
, if available.
MediaPlayerInterface
, or nullptr if none available. Implements alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerFactoryInterface.
|
static |
Adapts a legacy MediaPlayerFactoryInterface
to a PooledMediaResourceProviderInterface
, given the speakers associated with the players managed by the MediaPlayerFactoryInterface
.
mediaPlayerFactory | The factory to adapt. |
speakers | The ChannelVolumeInterfaces that the PooledMediaResourceProvider will return on getSpeakers(). |
PooledMediaResourceProviderInterface
.
|
override |
|
static |
Factory method that creates a PooledMediaResourceProviderInterface
.
mediaPlayers | The pooled media players to manage. |
speakers | The ChannelVolumeInterfaces that the PooledMediaResourceProvider will return on getSpeakers(). |
fingerprint | Optional fingerprint argument to send to AVS. |
PooledMediaResourceProviderInterface
.
|
overridevirtual |
Get Fingerprint
of MediaPlayer
.
Fingerprint
of MediaPlayer
. Implements alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerFactoryInterface.
|
overridevirtual |
Gets all ChannelVolumeInterfaces
associated with the media players managed by this instance.
ChannelVolumeInterfaces
. Implements alexaClientSDK::avsCommon::utils::mediaPlayer::PooledMediaResourceProviderInterface.
|
overridevirtual |
Returns true if a MediaPlayerInterface
instance is available (i.e. if a call to acquireMediaPlayer
would return a valid Player) The return value is valid until the next call to acquireMediaPlayer() or releaseMediaPlayer()
MediaPlayerInterface
instance is available. Implements alexaClientSDK::avsCommon::utils::mediaPlayer::MediaPlayerFactoryInterface.
|
override |
|
override |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0