AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <EndpointAlexaSeekControllerHandler.h>
Public Member Functions | |
AlexaSeekControllerInterface methods | |
acsdkAlexaSeekControllerInterfaces::AlexaSeekControllerInterface::Response | adjustSeekPosition (const std::chrono::milliseconds &deltaPosition) override |
Public Member Functions inherited from alexaClientSDK::acsdkAlexaSeekControllerInterfaces::AlexaSeekControllerInterface | |
virtual | ~AlexaSeekControllerInterface ()=default |
Static Public Member Functions | |
static std::shared_ptr< EndpointAlexaSeekControllerHandler > | create (const std::string &endpointName) |
Sample implementation of an AlexaSeekControllerInterface
.
|
overridevirtual |
Execute seek operation for audio or video content on the device. If the seek delta deltaPosition
would result in the adjusted timestamp position exceeding the timestamp boundaries of the media content, the operation should set the new media's position to the maximum allotted timestamp of the media. For example, the content's new timestamp position should be set to zero if the last position plus the seek delta is less than zero. This method must respond with the new timestamp position Response.currentMediaPosition
.
deltaPosition | The value to seek a media content. Negative to seek the content backward and positive to seek the content forward. |
AlexaSeekControllerInterface.Response
to indicate whether seek operation was successfully executed or encountered an error while executing. Implements alexaClientSDK::acsdkAlexaSeekControllerInterfaces::AlexaSeekControllerInterface.
|
static |
Create a EndpointAlexaSeekControllerHandler object.
endpointName | The name of the endpoint. |
nullptr
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0