#include <PipelineInterface.h>
An interface that allows accessing some members of an AudioPipeline
instantiated by the MediaPlayer
. The interface also allows queuing callbacks on the worker thread of the MediaPlayer
.
◆ ~PipelineInterface()
virtual alexaClientSDK::mediaPlayer::PipelineInterface::~PipelineInterface |
( |
| ) |
|
|
protectedvirtualdefault |
◆ attachSource()
virtual guint alexaClientSDK::mediaPlayer::PipelineInterface::attachSource |
( |
GSource * |
source | ) |
|
|
pure virtual |
Attach the source to the worker thread.
- Parameters
-
source | The source to be executed on the worker thread. |
- Returns
- The ID (greater than 0) of the source. 0 if there is an error.
Implemented in alexaClientSDK::mediaPlayer::MediaPlayer.
◆ getAppSrc()
virtual GstAppSrc* alexaClientSDK::mediaPlayer::PipelineInterface::getAppSrc |
( |
| ) |
const |
|
pure virtual |
◆ getDecoder()
virtual GstElement* alexaClientSDK::mediaPlayer::PipelineInterface::getDecoder |
( |
| ) |
const |
|
pure virtual |
◆ getPipeline()
virtual GstElement* alexaClientSDK::mediaPlayer::PipelineInterface::getPipeline |
( |
| ) |
const |
|
pure virtual |
◆ queueCallback()
virtual guint alexaClientSDK::mediaPlayer::PipelineInterface::queueCallback |
( |
const std::function< gboolean()> * |
callback | ) |
|
|
pure virtual |
Queue the specified callback for execution on the worker thread.
- Parameters
-
callback | The callback to queue. |
- Returns
- The ID of the queued callback (for calling
g_source_remove
).
Implemented in alexaClientSDK::mediaPlayer::MediaPlayer.
◆ removeSource()
virtual gboolean alexaClientSDK::mediaPlayer::PipelineInterface::removeSource |
( |
guint |
tag | ) |
|
|
pure virtual |
◆ setAppSrc()
virtual void alexaClientSDK::mediaPlayer::PipelineInterface::setAppSrc |
( |
GstAppSrc * |
appSrc | ) |
|
|
pure virtual |
◆ setDecoder()
virtual void alexaClientSDK::mediaPlayer::PipelineInterface::setDecoder |
( |
GstElement * |
decoder | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/MediaPlayer/GStreamerMediaPlayer/include/MediaPlayer/PipelineInterface.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0