AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AlexaSeekControllerInterface.h>
Public Types | |
enum | Type { Type::SUCCESS, Type::ALREADY_IN_OPERATION, Type::CANCELED_BY_NEW_REQUEST, Type::NO_CONTENT_AVAILABLE, Type::CONTENT_CANNOT_BE_SEEKED, Type::INTERNAL_ERROR } |
Public Member Functions | |
Response (std::chrono::milliseconds currentMediaPosition) | |
Response (Type type, const std::string &errorMessage) | |
Public Attributes | |
Type | type |
The AlexaSeekControllerInterface response type. More... | |
std::chrono::milliseconds | currentMediaPosition |
std::string | errorMessage |
Struct for holding AlexaSeekController response for AlexaSeekController interface
type
should be SUCCESS
and currentMediaPosition
should be set to the current media's timestamp position after seeking if there are no errors while executing seek controller operation. Otherwise, it should return the corresponding error response type type
along with a log message errorMessage
that would be logged in the cloud, for the purposes of aiding debugging.
|
strong |
Enum for the different error types understood by the AlexaSeekController capability agent.
|
inline |
Constructor for Response
. This response should be used when the seek operation is executed successfully on the device and should send back the new timestamp of the current media currentMediaPosition
after seeking. Initializes the type to SUCCESS
by default.
currentMediaPosition | The media's new timestamp position in milliseconds after executing the seek operation. |
|
inline |
Constructor for Response
. This response should be used when the seek operation is not executed successfully on the device. Initializes the currentMediaPosition
to -1
to indicate an error and should not be used when type
is SUCCESS
.
type | The response type Type . Should indicate a corresponding error type and must not be SUCCESS . |
errorMessage | The error message if type is other than SUCCESS . |
std::chrono::milliseconds alexaClientSDK::acsdkAlexaSeekControllerInterfaces::AlexaSeekControllerInterface::Response::currentMediaPosition |
The current position of the video or audio content in milliseconds after seeking. This value must always be greater than or equal to zero if the operation is successful and should be negative if errors are encountered during the execution of the seek operation.
std::string alexaClientSDK::acsdkAlexaSeekControllerInterfaces::AlexaSeekControllerInterface::Response::errorMessage |
The error message for logging if the type
is any other than SUCCESS, for the purposes of aiding debugging.
Type alexaClientSDK::acsdkAlexaSeekControllerInterfaces::AlexaSeekControllerInterface::Response::type |
The AlexaSeekControllerInterface response type.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0