AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CaptionTimingAdapterInterface.h>
Public Member Functions | |
virtual | ~CaptionTimingAdapterInterface ()=default |
virtual void | queueForDisplay (const CaptionFrame &captionFrame, bool autostart=true)=0 |
virtual void | reset ()=0 |
virtual void | start ()=0 |
virtual void | stop ()=0 |
virtual void | pause ()=0 |
An abstract class that is responsible for handling the timed display of CaptionFrame
objects. Each CaptionFrame's
delay and duration values should be used with the DelayInterface
to maintain this timing.
Implementations of this class must be thread-safe and allow for asynchronous calls to any of the provided methods.
|
virtualdefault |
Destructor.
|
pure virtual |
Pauses the playback of captions, keeping track of the last caption frame shown.
Implemented in alexaClientSDK::captions::CaptionTimingAdapter.
|
pure virtual |
Enqueues a CaptionFrame
object for display. This method must begin the serial presentation of the enqueued caption frames if such presentation is not already taking place and autostart
is true. The order of the caption frames must be maintained as first-in-first-out.
captionFrame | The CaptionFrame object to be enqueued for display. |
autostart | Determines if presentation should begin immediately if it has not already; defaults to true. |
Implemented in alexaClientSDK::captions::CaptionTimingAdapter.
|
pure virtual |
Resets the state of this adapter, in preparation for new captions content.
Implemented in alexaClientSDK::captions::CaptionTimingAdapter.
|
pure virtual |
Resumes the playback of captions content, starting from the caption frame following the last one shown.
Implemented in alexaClientSDK::captions::CaptionTimingAdapter.
|
pure virtual |
Stops the playback of captions, forgetting which caption frame was last shown.
Implemented in alexaClientSDK::captions::CaptionTimingAdapter.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0