AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <FFmpegUrlInputController.h>
Public Member Functions | |
std::string | getCurrentUrl () const |
~FFmpegUrlInputController () | |
FFmpegInputControllerInterface methods | |
std::tuple< Result, std::shared_ptr< AVFormatContext >, std::chrono::milliseconds > | getCurrentFormatContext () override |
bool | hasNext () const override |
bool | next () override |
Public Member Functions inherited from alexaClientSDK::mediaPlayer::android::FFmpegInputControllerInterface | |
virtual | ~FFmpegInputControllerInterface ()=default |
Static Public Member Functions | |
static std::unique_ptr< FFmpegUrlInputController > | create (std::shared_ptr< avsCommon::utils::playlistParser::IterativePlaylistParserInterface > playlistParser, const std::string &url, const std::chrono::milliseconds &offset, 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 a url (playlist or single media file).
alexaClientSDK::mediaPlayer::android::FFmpegUrlInputController::~FFmpegUrlInputController | ( | ) |
Destructor.
|
static |
Creates an input stream object.
playlistParser | Pointer to a valid playlist parser used to fill up the Playlist . |
url | The playlist / media url that we would like to decode. |
offset | The audio input should start from the given offset. |
repeat | The playlist should play in a loop if this is true. |
FFmpegUrlInputReader
if succeed; otherwise, nullptr
.
|
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.
std::string alexaClientSDK::mediaPlayer::android::FFmpegUrlInputController::getCurrentUrl | ( | ) | const |
|
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