![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <FFmpegAttachmentInputController.h>
Public Member Functions | |
~FFmpegAttachmentInputController () | |
FFmpegInputControllerInterface methods | |
bool | hasNext () const override |
bool | next () override |
std::tuple< Result, std::shared_ptr< AVFormatContext >, std::chrono::milliseconds > | getCurrentFormatContext () override |
![]() | |
virtual | ~FFmpegInputControllerInterface ()=default |
Static Public Member Functions | |
static std::unique_ptr< FFmpegAttachmentInputController > | create (std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > reader, const avsCommon::utils::AudioFormat *format=nullptr) |
Additional Inherited Members | |
![]() | |
enum | Result { Result::OK, Result::OK_EMPTY, Result::TRY_AGAIN, Result::ERROR } |
Enumeration class that represents the possible return values for getContext . More... | |
This class provides the FFmpegDecoder input access to the content of an attachment reader.
This class only support one media input and it cannot provide multiple tracks / repeat.
alexaClientSDK::mediaPlayer::android::FFmpegAttachmentInputController::~FFmpegAttachmentInputController | ( | ) |
Destructor.
|
static |
Creates an input reader object.
reader | A pointer to the attachment reader. |
format | The audio format to be used to interpret raw audio data. This can be nullptr . |
FFmpegAttachmentInputController
if succeed; nullptr
otherwise.
|
overridevirtual |
This method will initialize the ffmpeg format context that represents the current input stream.
AVFormatContext
and the initial playback position. Implements alexaClientSDK::mediaPlayer::android::FFmpegInputControllerInterface.
|
overridevirtual |
Checks if there is a next track to be played.
true
if there is a next track; false, otherwise. Implements alexaClientSDK::mediaPlayer::android::FFmpegInputControllerInterface.
|
overridevirtual |
Change input to the next track to be played.
true
if it succeeds to change; false, otherwise. Implements alexaClientSDK::mediaPlayer::android::FFmpegInputControllerInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0