AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <FFmpegInputControllerInterface.h>
Public Types | |
enum | Result { Result::OK, Result::OK_EMPTY, Result::TRY_AGAIN, Result::ERROR } |
Enumeration class that represents the possible return values for getContext . More... | |
Public Member Functions | |
virtual bool | hasNext () const =0 |
virtual bool | next ()=0 |
virtual std::tuple< Result, std::shared_ptr< AVFormatContext >, std::chrono::milliseconds > | getCurrentFormatContext ()=0 |
virtual | ~FFmpegInputControllerInterface ()=default |
Interface for an input controller. The controller should provide a AVFormatContext
that will be used to configure how the decoder will read the current input media.
For custom buffer operations, the context may set which read function the FFmpeg decoder will call.
The interface also offers hasNext() and next() methods for playing multiple medias in a row. The derived classes that do not support multiple media playing should just return false
for both methods.
Enumeration class that represents the possible return values for getContext
.
|
virtualdefault |
Destructor
|
pure virtual |
This method will initialize the ffmpeg format context that represents the current input stream.
AVFormatContext
and the initial playback position. Implemented in alexaClientSDK::mediaPlayer::android::FFmpegAttachmentInputController, alexaClientSDK::mediaPlayer::android::FFmpegUrlInputController, and alexaClientSDK::mediaPlayer::android::FFmpegStreamInputController.
|
pure virtual |
Checks if there is a next track to be played.
true
if there is a next track; false, otherwise. Implemented in alexaClientSDK::mediaPlayer::android::FFmpegUrlInputController, alexaClientSDK::mediaPlayer::android::FFmpegAttachmentInputController, and alexaClientSDK::mediaPlayer::android::FFmpegStreamInputController.
|
pure virtual |
Change input to the next track to be played.
true
if it succeeds to change; false, otherwise. Implemented in alexaClientSDK::mediaPlayer::android::FFmpegUrlInputController, alexaClientSDK::mediaPlayer::android::FFmpegAttachmentInputController, and alexaClientSDK::mediaPlayer::android::FFmpegStreamInputController.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0