AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::mediaPlayer::IStreamSource Class Reference

#include <IStreamSource.h>

Inheritance diagram for alexaClientSDK::mediaPlayer::IStreamSource:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::mediaPlayer::IStreamSource:
Collaboration graph
[legend]

Public Member Functions

 ~IStreamSource () override
 
- Public Member Functions inherited from alexaClientSDK::mediaPlayer::BaseStreamSource
 BaseStreamSource (PipelineInterface *pipeline, const std::string &className)
 
 ~BaseStreamSource () override
 
bool handleEndOfStream () override
 
void preprocess () override
 
void addObserver (std::shared_ptr< SourceObserverInterface > observer) override
 
void removeObserver (std::shared_ptr< SourceObserverInterface > observer) override
 
- Public Member Functions inherited from alexaClientSDK::mediaPlayer::SourceInterface
 SourceInterface (const std::string &className)
 
virtual ~SourceInterface ()=default
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::RequiresShutdown
 RequiresShutdown (const std::string &name)
 
virtual ~RequiresShutdown ()
 Destructor. More...
 
const std::string & name () const
 
void shutdown ()
 
bool isShutdown () const
 

Static Public Member Functions

static std::unique_ptr< IStreamSourcecreate (PipelineInterface *pipeline, std::shared_ptr< std::istream > stream, bool repeat)
 

Additional Inherited Members

- Protected Member Functions inherited from alexaClientSDK::mediaPlayer::BaseStreamSource
bool init (const avsCommon::utils::AudioFormat *audioFormat=nullptr)
 
GstAppSrc * getAppSrc () const
 
void signalEndOfData ()
 
void installOnReadDataHandler ()
 
void updateOnReadDataHandler ()
 
void uninstallOnReadDataHandler ()
 
void clearOnReadDataHandler ()
 
void notifyObserversOnReadData ()
 

Constructor & Destructor Documentation

◆ ~IStreamSource()

alexaClientSDK::mediaPlayer::IStreamSource::~IStreamSource ( )
override

Destructor.

Member Function Documentation

◆ create()

static std::unique_ptr<IStreamSource> alexaClientSDK::mediaPlayer::IStreamSource::create ( PipelineInterface pipeline,
std::shared_ptr< std::istream >  stream,
bool  repeat 
)
static

Create an IStream source.

Parameters
pipelineThe PipelineInterface through which the source of the AudioPipeline may be set.
streamThe std::istream from which to create the pipeline source.
repeatWhether the stream should be replayed until stopped.

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

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