AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Public Attributes | List of all members
alexaClientSDK::mediaPlayer::test::MediaPlayerTest Class Reference
Inheritance diagram for alexaClientSDK::mediaPlayer::test::MediaPlayerTest:
Inheritance graph
Collaboration diagram for alexaClientSDK::mediaPlayer::test::MediaPlayerTest:
Collaboration graph

Public Member Functions

void SetUp () override
void TearDown () override
void setAttachmentReaderSource (MediaPlayer::SourceId *id, int iterations=1, std::vector< size_t > receiveSizes={std::numeric_limits< size_t >::max()})
void setIStreamSource (MediaPlayer::SourceId *id, bool repeat=false, const SourceConfig &config=SourceConfig())

Public Attributes

std::shared_ptr< MediaPlayerm_mediaPlayer
 An instance of the MediaPlayer. More...
std::shared_ptr< MockPlayerObserverm_playerObserver
 An observer to whom the playback started and finished notifications need to be sent. More...

Member Function Documentation

◆ setAttachmentReaderSource()

void alexaClientSDK::mediaPlayer::test::MediaPlayerTest::setAttachmentReaderSource ( MediaPlayer::SourceId id,
int  iterations = 1,
std::vector< size_t >  receiveSizes = {std::numeric_limits<size_t>::max()} 

Sets the audio source to play.

◆ setIStreamSource()

void alexaClientSDK::mediaPlayer::test::MediaPlayerTest::setIStreamSource ( MediaPlayer::SourceId id,
bool  repeat = false,
const SourceConfig config = SourceConfig() 

Sets IStream source to play.

idThe SourceId to set
repeatWhether to play the stream over and over until stopped.
configThe SourceConfig to use for the source

◆ SetUp()

void alexaClientSDK::mediaPlayer::test::MediaPlayerTest::SetUp ( )

◆ TearDown()

void alexaClientSDK::mediaPlayer::test::MediaPlayerTest::TearDown ( )

Member Data Documentation

◆ m_mediaPlayer

std::shared_ptr<MediaPlayer> alexaClientSDK::mediaPlayer::test::MediaPlayerTest::m_mediaPlayer

An instance of the MediaPlayer.

◆ m_playerObserver

std::shared_ptr<MockPlayerObserver> alexaClientSDK::mediaPlayer::test::MediaPlayerTest::m_playerObserver

An observer to whom the playback started and finished notifications need to be sent.

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0