AlexaClientSDK  1.26.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
Collaboration diagram for alexaClientSDK::mediaPlayer::IStreamSource:
Collaboration graph

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 ( )


Member Function Documentation

◆ create()

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

Create an IStream source.

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 files:

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