AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <FFmpegStreamInputController.h>
Public Member Functions | |
~FFmpegStreamInputController () | |
FFmpegInputControllerInterface methods | |
bool | hasNext () const override |
bool | next () override |
std::tuple< Result, std::shared_ptr< AVFormatContext >, std::chrono::milliseconds > | getCurrentFormatContext () override |
Public Member Functions inherited from alexaClientSDK::mediaPlayer::android::FFmpegInputControllerInterface | |
virtual | ~FFmpegInputControllerInterface ()=default |
Static Public Member Functions | |
static std::unique_ptr< FFmpegStreamInputController > | create (std::shared_ptr< std::istream > stream, bool repeat) |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::mediaPlayer::android::FFmpegInputControllerInterface | |
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 input stream.
This class support repeat functionality implemented by returning true
to hasNext
and rewinding the stream pointer when next
is called.
alexaClientSDK::mediaPlayer::android::FFmpegStreamInputController::~FFmpegStreamInputController | ( | ) |
Destructor.
|
static |
Creates an input stream object.
input | A pointer to the input stream. It shall point to a valid object. |
repeat | Whether to play the input stream in a loop. |
FFmpegStreamInputController
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